Skip to content

Commit 8138407

Browse files
authored
fix: github action only triggered for new tags
1 parent dda21c1 commit 8138407

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.github/workflows/npm-publish.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
name: Publish NPM
22
on:
3-
create:
3+
push:
4+
branches-ignore:
5+
- '*'
46
tags:
5-
- v*
7+
- 'v*'
68
jobs:
79
build:
810
runs-on: ubuntu-latest
@@ -17,4 +19,4 @@ jobs:
1719
- run: make build
1820
- run: npm publish
1921
env:
20-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
22+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)