Skip to content

Commit be1d005

Browse files
committedFeb 26, 2021
ci: don't run publish-npm job unless push
1 parent 0e78cee commit be1d005

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎.github/workflows/ci.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ jobs:
3232

3333

3434
publish-npm:
35+
if: ${{ github.event_name == 'push' }}
3536
needs: build
3637
runs-on: ubuntu-latest
3738
steps:
@@ -42,7 +43,6 @@ jobs:
4243
registry-url: https://registry.npmjs.org/
4344
- run: npm ci
4445
- run: npm run release
45-
if: ${{ github.event_name == 'push' }}
4646
env:
4747
NPM_TOKEN: ${{secrets.NPM_TOKEN}} # f674......69f0
4848
GITHUB_TOKEN: ${{secrets.GH_RELEASE_TOKEN}}

0 commit comments

Comments
 (0)
Please sign in to comment.