File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1313
1414permissions :
1515 contents : write
16+ id-token : write # OIDC for npm Trusted Publishing
1617 pull-requests : write
1718
1819jobs :
@@ -39,12 +40,15 @@ jobs:
3940 node-version-file : " .nvmrc"
4041 package-manager-cache : false
4142
43+ # Ensure npm 11.5.1 or later for trusted publishing
44+ - name : Install latest npm
45+ if : ${{ github.event.inputs.force-npm-publish || steps.release.outputs.release_created }}
46+ run : npm install -g npm@latest
47+
4248 - name : Install
4349 if : ${{ github.event.inputs.force-npm-publish || steps.release.outputs.release_created }}
4450 run : npm ci
4551
4652 - name : Publish
4753 if : ${{ github.event.inputs.force-npm-publish || steps.release.outputs.release_created }}
48- run : npm publish
49- env :
50- NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
54+ run : npm publish --access public --provenance
You can’t perform that action at this time.
0 commit comments