Skip to content

Commit 8e44333

Browse files
willwashburnclaude
andauthored
ci: bump pinned Node to 22.22.2 to fix npm@latest EBADENGINE (#246)
* ci: bump pinned Node to 22.22.2 for npm@latest compatibility npm@latest now resolves to npm@12, whose engines field requires Node ^22.22.2 || ^24.15.0 || >=26. The publish jobs pinned Node 22.14.0, so "npm install -g npm@latest" failed with EBADENGINE. Bump the pin to 22.22.2 to satisfy the requirement while keeping the latest npm for OIDC provenance support. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01X4h6iYSAmtDjNuDn3wXaGj * ci: pin Node to 22.22.3 to avoid 22.22.2 npm toolcache regression Node 22.22.2 ships a broken bundled npm 10.9.7 whose module tree is missing promise-retry, so "npm install -g npm@latest" fails with MODULE_NOT_FOUND (nodejs/node#62425, actions/runner-images#13883). Node 22.22.3 bundles npm 10.9.8 which fixes the tree, still satisfies npm@12's engines requirement (^22.22.2), and keeps the single npm upgrade step working for OIDC provenance. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01X4h6iYSAmtDjNuDn3wXaGj --------- Co-authored-by: Claude <noreply@anthropic.com>
1 parent edfb5b9 commit 8e44333

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

.github/workflows/publish-npm.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ jobs:
7878
- name: Setup Node.js
7979
uses: actions/setup-node@v4
8080
with:
81-
node-version: "22.14.0"
81+
node-version: "22.22.3"
8282
cache: "npm"
8383
cache-dependency-path: package-lock.json
8484
registry-url: "https://registry.npmjs.org"
@@ -205,7 +205,7 @@ jobs:
205205
- name: Setup Node.js
206206
uses: actions/setup-node@v4
207207
with:
208-
node-version: "22.14.0"
208+
node-version: "22.22.3"
209209
registry-url: "https://registry.npmjs.org"
210210

211211
- name: Download build artifacts
@@ -244,7 +244,7 @@ jobs:
244244
- name: Setup Node.js
245245
uses: actions/setup-node@v4
246246
with:
247-
node-version: "22.14.0"
247+
node-version: "22.22.3"
248248
registry-url: "https://registry.npmjs.org"
249249

250250
- name: Download build artifacts

0 commit comments

Comments
 (0)