Skip to content

ci(release): bump Node to 24 (bundled npm 11.5+) for OIDC publish#52

Merged
milstan merged 1 commit into
mainfrom
milstan/release-node24
May 20, 2026
Merged

ci(release): bump Node to 24 (bundled npm 11.5+) for OIDC publish#52
milstan merged 1 commit into
mainfrom
milstan/release-node24

Conversation

@milstan
Copy link
Copy Markdown
Contributor

@milstan milstan commented May 20, 2026

Self-upgrade of npm broke twice in a row (MODULE_NOT_FOUND: promise-retry after npm install -g npm@latest either with or without sudo). Bumping to Node 24 sidesteps it entirely — Node 24 ships with npm 11.5+ which has Trusted Publishers OIDC support natively.

Node 22's bundled npm 10.x cannot do the Trusted Publishers OIDC
handshake; in-place self-upgrade via `npm i -g npm@latest` consistently
breaks with MODULE_NOT_FOUND on the runner image regardless of sudo or
--force. Node 24 ships with npm 11.5+ which speaks OIDC natively, so we
just bump the runtime and drop the upgrade dance entirely.

Both publish jobs now run on Node 24 (build/test/publish all on the same
node), and just `echo` the npm version for next-time debuggability.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@milstan milstan merged commit 3efbd58 into main May 20, 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