Skip to content

Commit

Permalink
ci: don't run publish-npm job unless push
Browse files Browse the repository at this point in the history
  • Loading branch information
austince committed Feb 26, 2021
1 parent 0e78cee commit be1d005
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ jobs:


publish-npm:
if: ${{ github.event_name == 'push' }}
needs: build
runs-on: ubuntu-latest
steps:
Expand All @@ -42,7 +43,6 @@ jobs:
registry-url: https://registry.npmjs.org/
- run: npm ci
- run: npm run release
if: ${{ github.event_name == 'push' }}
env:
NPM_TOKEN: ${{secrets.NPM_TOKEN}} # f674......69f0
GITHUB_TOKEN: ${{secrets.GH_RELEASE_TOKEN}}

0 comments on commit be1d005

Please sign in to comment.