Skip to content

Commit be562ec

Browse files
committed
fixed: publish script
1 parent 68e71d8 commit be562ec

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

.github/workflows/publish.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
name: Publish
22
on:
3-
push:
4-
branches:
5-
- main
3+
release:
4+
types: [published]
65

76
jobs:
87
publish:
@@ -20,9 +19,9 @@ jobs:
2019
registry-url: 'https://registry.npmjs.org'
2120

2221
- name: Publish package to npmjs.com
23-
- run: npm ci
24-
- run: npm run build
25-
- run: npm publish --provenance --access public
22+
run: npm ci
23+
run: npm run build
24+
run: npm publish --provenance --access public
2625
env:
2726
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
2827

0 commit comments

Comments
 (0)