File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- name : NPM Publish
1+ name : Release
2+
23on :
34 push :
45 branches :
56 - main
7+ workflow_dispatch :
68
79jobs :
8- publish :
9- name : Publish
10+ release :
11+ name : Release
1012 runs-on : ubuntu-latest
1113 permissions :
1214 id-token : write
@@ -29,11 +31,12 @@ jobs:
2931 - name : Publish to NPM and Create GitHub Release
3032 env :
3133 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
34+ NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
3235 run : |
3336 npx -p semantic-release \
3437 -p @semantic-release/changelog \
3538 -p @semantic-release/git \
3639 -p @semantic-release/github \
3740 -p @semantic-release/npm \
3841 -p conventional-changelog-conventionalcommits \
39- semantic-release --dry-run
42+ semantic-release
Original file line number Diff line number Diff line change 11{
22 "branches" : [" main" ],
3- "tagFormat" : " ${version}" ,
3+ "tagFormat" : " v ${version}" ,
44 "plugins" : [
55 [
66 " @semantic-release/release-notes-generator" ,
4545 {
4646 "type" : " test" ,
4747 "hidden" : true
48+ },
49+ {
50+ "type" : " ci" ,
51+ "hidden" : true
4852 }
4953 ]
5054 }
You can’t perform that action at this time.
0 commit comments