Skip to content

Commit 60b95fd

Browse files
committed
fix node release
1 parent f515cd7 commit 60b95fd

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/release.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)