File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Load Diff This file was deleted.
Original file line number Diff line number Diff line change 33 push :
44 branches :
55 - main
6+ - beta
67 pull_request :
78 branches :
89 - main
10+ - beta
11+ merge_group :
12+ types :
13+ - checks_requested
914
1015jobs :
1116 lint :
6873 issues : write # To comment on released issues
6974 pull-requests : write # To comment on released pull requests
7075 id-token : write # To enable use of OIDC for npm provenance
71- if : github.ref == 'refs/heads/main'
76+ if : github.ref == 'refs/heads/main' || github.ref == 'refs/heads/beta'
7277 steps :
7378 - name : Checkout
7479 uses : actions/checkout@v4
@@ -82,16 +87,11 @@ jobs:
8287 uses : actions/setup-node@v4
8388 with :
8489 node-version : " lts/*" # Use the latest LTS version of Node.js
85- registry-url : ' https://registry.npmjs.org/' # Specify npm registry
86-
87- - name : Verify the integrity of provenance attestations and registry signatures for installed dependencies
88- run : npm audit signatures # Check the signatures to verify integrity
8990
9091 - name : Release
9192 run : npx semantic-release # Run semantic-release to manage versioning and publishing
9293 env :
9394 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }} # GitHub token for authentication
94-
95- # Why NODE_AUTH_TOKEN instead of NPM_TOKEN: https://github.com/semantic-release/semantic-release/issues/2313
96- NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }} # npm token for publishing package
95+ NPM_CONFIG_PROVENANCE : true
96+
9797
Original file line number Diff line number Diff line change @@ -27,7 +27,6 @@ module.exports = {
2727 '@semantic-release/npm' ,
2828 {
2929 npmPublish : true ,
30- tag : 'beta' , // Publishes with a 'beta' tag to npm
3130 } ,
3231 ] ,
3332 '@semantic-release/github' , // Handles GitHub releases
You can’t perform that action at this time.
0 commit comments