File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -52,15 +52,15 @@ jobs:
5252 runs-on : ubuntu-latest
5353 if : startsWith(github.ref, 'refs/tags/node-')
5454 permissions :
55- id-token : write # Required for trusted publishing (provenance)
55+ id-token : write # Required for OIDC trusted publishing
5656 contents : read
5757 steps :
5858 - uses : actions/checkout@v4
5959
6060 - name : Set up Node.js
6161 uses : actions/setup-node@v4
6262 with :
63- node-version : ' 20 '
63+ node-version : ' 22 ' # Node 22+ includes npm >= 11.5.1 required for OIDC
6464 registry-url : ' https://registry.npmjs.org'
6565
6666 - name : Install dependencies
@@ -73,10 +73,10 @@ jobs:
7373 cd nodejs-api
7474 npm run build
7575
76- - name : Publish to npm
76+ - name : Publish to npm (OIDC trusted publishing)
7777 run : |
7878 cd nodejs-api
79- npm publish --access public --provenance
79+ npm publish --access public
8080
8181 - name : Create GitHub Release
8282 uses : softprops/action-gh-release@v1
You can’t perform that action at this time.
0 commit comments