Commit f780e4f 1 parent 123db08 commit f780e4f Copy full SHA for f780e4f
File tree 2 files changed +7
-5
lines changed
2 files changed +7
-5
lines changed Original file line number Diff line number Diff line change 1
1
name : Publish Package to npmjs
2
2
3
3
on :
4
- release :
5
- types : [published]
4
+ push :
5
+ if : github.ref_name == 'main'
6
+ tags :
7
+ - ' v*'
6
8
7
9
jobs :
8
10
publish :
21
23
cache : npm
22
24
registry-url : ' https://registry.npmjs.org'
23
25
24
- - run : npm ci --no-audit
26
+ - run : npm ci --force -- no-audit
25
27
26
- - run : npm build
28
+ - run : npm run build
27
29
28
30
- run : npm publish --provenance --access public
29
31
env :
Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ name: Publish Release to GitHub
2
2
3
3
on :
4
4
push :
5
+ if : github.ref_name == 'main'
5
6
tags :
6
7
- ' v*'
7
8
21
22
with :
22
23
generateReleaseNotes : ' true'
23
24
prerelease : ' false'
24
- reactions : +1,heart,rocket
25
25
summaryEnabled : ' false'
You can’t perform that action at this time.
0 commit comments