From 9af7b1d5dd9d31edf60abcf0813c031ae4b766c4 Mon Sep 17 00:00:00 2001 From: "ice.breaker" Date: Wed, 28 Sep 2022 15:47:56 -0500 Subject: [PATCH] feat: Setup next release branch for testing. --- .github/workflows/next.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/next.yml diff --git a/.github/workflows/next.yml b/.github/workflows/next.yml new file mode 100644 index 000000000..963639bf1 --- /dev/null +++ b/.github/workflows/next.yml @@ -0,0 +1,29 @@ +name: next + +on: + push: + branches: + - next + # Allows you to run this workflow manually from the Actions tab + workflow_dispatch: +jobs: + semantic_release: + name: semantic_release + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v2 + - name: Set up Node.js + uses: actions/setup-node@v3 + with: + node-version: 16 + - name: Run Tests + run: | + yarn install --immutable --immutable-cache --check-cache + npm test + - name: Run semantic release + env: # Or as an environment variable + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + NPM_TOKEN: ${{secrets.NPM_TOKEN}} + run: | + npx semantic-release --branches next