diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 6c4525c2..3def00fa 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -3,13 +3,13 @@ name: Deploy on: push: tags: [ 'v*.*.*' ] - branches: master jobs: test: uses: ./.github/workflows/test.yml deploy: needs: [test] + if: ${{ github.ref_name == 'master' }} runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 @@ -20,5 +20,5 @@ jobs: - run: npm run build - run: npx semantic-release env: - NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} + NPM_TOKEN: ${{ secrets.NPM_TOKEN }} GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN_GITHUB }} \ No newline at end of file