Skip to content

Commit 060bd1b

Browse files
pascal-klesseclaude
andcommitted
ci: use Node 24 for publish — Node 22.22.2 toolcache npm is broken
The Node 22.22.2 runner toolcache ships npm 10.9.7 with a broken module tree (missing promise-retry), so `npm install -g npm@latest` aborts with MODULE_NOT_FOUND before OIDC publish can run (actions/runner-images#13883, nodejs/node#62425). Node 24 ships a healthy npm 11.x; upgrading from there to >= 11.5.1 for OIDC trusted publishing works. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent ae3db88 commit 060bd1b

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

.github/workflows/publish.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,15 @@ jobs:
2020
steps:
2121
- name: Git checkout
2222
uses: actions/checkout@v4
23-
- name: Node 22
23+
# Node 24 ships a working npm 11.x. Node 22.22.2's toolcache npm
24+
# (10.9.7) has a broken module tree (missing promise-retry) that makes
25+
# `npm install -g` abort with MODULE_NOT_FOUND — see
26+
# actions/runner-images#13883 / nodejs/node#62425. Upgrading from a
27+
# healthy npm 11.x base avoids that and guarantees OIDC support (>= 11.5.1).
28+
- name: Node 24
2429
uses: actions/setup-node@v4
2530
with:
26-
node-version: 22
31+
node-version: 24
2732
registry-url: https://registry.npmjs.org
2833
- name: Upgrade npm for OIDC trusted publishing
2934
run: npm install -g npm@latest

0 commit comments

Comments
 (0)