ci: use Node 24 for npm publish (Node 22.22.2 has broken npm)

Node 22.22.2's bundled npm 10.9.7 is missing promise-retry, breaking
npm install -g. Node 24 ships npm 11.11.0 with native OIDC support.

Ref: nodejs/node#62425, actions/runner-images#13883
This commit is contained in:
CloakHQ
2026-04-09 04:52:12 +02:00
parent 54d8442f20
commit 5dd44298ee
+1 -3
View File
@@ -83,10 +83,8 @@ jobs:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0
with:
node-version: 22
node-version: 24 # npm 11.11.0 native — no upgrade needed (Node 22.22.2 has broken npm)
registry-url: 'https://registry.npmjs.org'
- name: Upgrade npm for OIDC support
run: npm install -g npm@11
- name: Build
run: cd js && npm ci && npm run build
- name: Publish to npm