Skip to content

Commit 1225641

Browse files
committed
ci: don't run publish-npm job unless push
1 parent 3ea2fb6 commit 1225641

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
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)