Skip to content

Commit 4fa6521

Browse files
committed
ci: upgrade to Node 22 and npm 11.5.1+ for OIDC trusted publishing
1 parent 66f1224 commit 4fa6521

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

.github/workflows/npm-publish.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,14 @@ jobs:
1919
- name: Setup Node.js
2020
uses: actions/setup-node@v4
2121
with:
22-
node-version: '20' # Use Node 20 LTS
22+
node-version: '22' # Node 22 for npm 11.5.1+ (required for OIDC)
2323
registry-url: 'https://registry.npmjs.org'
2424
cache: 'npm'
25-
always-auth: true
25+
26+
- name: Upgrade npm for OIDC support
27+
run: |
28+
npm install -g npm@latest
29+
npm --version
2630
2731
- name: Install dependencies
2832
run: npm ci

0 commit comments

Comments
 (0)