Skip to content

fix(ci): pin release job to Node 22.21 to fix npm global upgrade#12

Merged
Andarius merged 2 commits into
mainfrom
fix/release-npm-upgrade
May 16, 2026
Merged

fix(ci): pin release job to Node 22.21 to fix npm global upgrade#12
Andarius merged 2 commits into
mainfrom
fix/release-npm-upgrade

Conversation

@Andarius
Copy link
Copy Markdown
Owner

Summary

The release job on main is failing at the Upgrade npm for OIDC trusted publishing step: npm install -g npm@latest aborts with Cannot find module 'promise-retry'. This is a regression in Node 22.22.2's bundled npm 10.9.5 as shipped in the GitHub Actions toolcache — the bundled arborist is missing one of its runtime dependencies, so the in-place npm can't install anything (including itself).

Pin only the release job to 22.21.0 (bundled npm 10.9.3 still works), so it can then upgrade to npm@latest for OIDC trusted publishing. Other jobs (install, lint, typescript, unit-tests, build-package) all use yarn and are unaffected.

Reference: failing run https://github.com/Andarius/react-native-zstd/actions/runs/25955516695/job/76301446653

Test plan

  • Merge → CI on main → release job's Upgrade npm step passes → publish succeeds

Andarius added 2 commits May 16, 2026 10:33
Node 22.22.2's bundled npm 10.9.5 ships broken in the GitHub Actions
toolcache — `npm install -g` fails with `Cannot find module
'promise-retry'`. This blocks the `Upgrade npm for OIDC trusted
publishing` step in the release job.

Pin only the release job to 22.21.0 (whose bundled npm 10.9.3 still
works); other jobs use yarn and aren't affected.
@Andarius Andarius merged commit 1555cb6 into main May 16, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant