Bump Node to 24 LTS so the release job's npm supports trusted publishing - #170
Conversation
npm@latest is now npm 12, which requires Node >= 22.22.2 and fails EBADENGINE on the Node 22.17.1 pinned in .nvmrc. npm 11 supports trusted publishing (>= 11.5.1) and runs on Node ^20.17.0 || >=22.9.0. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
|
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. Latest deployment of this branch, based on commit fe296a0:
|
Node 24.18.0 bundles npm >= 11.5.1, which is all trusted publishing needs, so drop the global npm upgrade step from the release workflow. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Uh oh!
There was an error while loading. Please reload this page.
The release job fails with
EBADENGINE(failing run): thenpm install -g npm@lateststep now resolves to npm 12, which doesn't support the Node 22.17.1 pinned in.nvmrc.Instead of juggling npm versions in CI, bump
.nvmrcto Node 24.18.0 (latest LTS), which bundles npm ≥ 11.5.1 — new enough for trusted publishing — and drop the global npm upgrade step from the release workflow entirely.🤖 Generated with Claude Code