diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml index d4f2d4c..2c7ab13 100644 --- a/.github/workflows/nodejs.yml +++ b/.github/workflows/nodejs.yml @@ -37,16 +37,14 @@ jobs: release: needs: build + if: github.ref == 'refs/heads/master' || github.ref == 'refs/heads/beta' runs-on: ubuntu-latest steps: - name: Checkout uses: actions/checkout@v2 - - name: Check the ref - run: echo ${{ github.ref }} - name: Semantic Release - if: github.ref == 'refs/heads/master' || github.ref == 'refs/heads/semantic-release' uses: cycjimmy/semantic-release-action@v2 with: semantic_version: 17.0.4 diff --git a/.releaserc.json b/.releaserc.json index b9626fe..bbdf6cc 100644 --- a/.releaserc.json +++ b/.releaserc.json @@ -1,7 +1,7 @@ { "branches": [ "master", - { "name": "semantic-release", "prerelease": "beta" } + { "name": "beta", "prerelease": "beta" } ], "plugins": [ "@semantic-release/commit-analyzer",