File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 33 push :
44 branches :
55 - master
6- - beta
76
87jobs :
98 publish :
109 name : Publish
1110 runs-on : ubuntu-24.04
11+ permissions :
12+ contents : write # to be able to publish a GitHub release
13+ issues : write # to be able to comment on released issues
14+ pull-requests : write # to be able to comment on released pull requests
15+ id-token : write # to enable use of OIDC for npm provenance
16+ environment :
17+ name : npm
1218 steps :
1319 - name : Checkout
1420 uses : actions/checkout@v2
1521 with :
1622 fetch-depth : 0
1723 - name : Setup node
18- uses : actions/setup-node@v1
24+ uses : actions/setup-node@v4
1925 with :
2026 node-version : 24
2127 - name : Install dependencies
2632 run : npm run test
2733 - name : Release
2834 env :
29- GITHUB_TOKEN : ${{ secrets.GH_TOKEN }}
30- NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
35+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
36+ # No need to set NPM_TOKEN because of OIDC
37+ NPM_CONFIG_PROVENANCE : true
3138 run : |
3239 git config --global user.name "Github Actions"
3340 git config --global user.email "sebastien.jourdain@kitware.com"
Original file line number Diff line number Diff line change 8282 },
8383 "files" : [
8484 " dist"
85- ]
85+ ],
86+ "release" : {
87+ "branches" : [
88+ " master"
89+ ],
90+ "plugins" : [
91+ " @semantic-release/commit-analyzer" ,
92+ " @semantic-release/release-notes-generator" ,
93+ " @semantic-release/npm" ,
94+ " @semantic-release/github"
95+ ]
96+ },
97+ "publishConfig" : {
98+ "access" : " public"
99+ }
86100}
You can’t perform that action at this time.
0 commit comments