Skip to content

Commit c1fb3bb

Browse files
upgrade CI to Node 24 to fix broken npm in Node 22.22.2 tool cache
The ubuntu-24.04 runner image (20260329.72.1) ships with a corrupted Node 22.22.2 tool cache: npm 10.9.7 is missing `promise-retry` from its own module tree, causing any `npm install -g` to fail with MODULE_NOT_FOUND. This broke all nodejs SDK build jobs. Node 24 ships with npm 11 natively, which supports OIDC Trusted Publishers without requiring a separate upgrade step, so we can drop the `npm install -g` workaround entirely. See: actions/runner-images#13883 nodejs/node#62463 Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
1 parent 017329c commit c1fb3bb

1 file changed

Lines changed: 7 additions & 6 deletions

File tree

.github/actions/build-sdk/action.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,14 +36,15 @@ runs:
3636
name: Setup Node
3737
uses: actions/setup-node@v6
3838
with:
39-
node-version: 22.x
39+
# Node 24 ships with npm 11, which supports OIDC Trusted Publishers natively.
40+
# We upgraded from Node 22 because the Node 22.22.2 tool cache on the ubuntu-24.04
41+
# runner image ships with a broken npm 10.9.7 (promise-retry missing from its module
42+
# tree), which causes `npm install -g` to fail. Node 24 avoids this entirely.
43+
# See: https://github.com/actions/runner-images/issues/13883
44+
# https://github.com/nodejs/node/pull/62463
45+
node-version: 24.x
4046
registry-url: https://registry.npmjs.org
4147

42-
- if: ${{ inputs.language == 'nodejs' }}
43-
name: Upgrade npm for Trusted Publishers support
44-
shell: bash
45-
run: npm install -g [email protected]
46-
4748
- if: ${{ inputs.language == 'dotnet' }}
4849
name: Setup DotNet
4950
uses: actions/setup-dotnet@v5

0 commit comments

Comments
 (0)