Skip to content

ci: bump Node to 24 to fix release workflow#170

Merged
remiposo merged 1 commit intomainfrom
ci/bump-node-24
Apr 24, 2026
Merged

ci: bump Node to 24 to fix release workflow#170
remiposo merged 1 commit intomainfrom
ci/bump-node-24

Conversation

@remiposo
Copy link
Copy Markdown
Contributor

@remiposo remiposo commented Apr 24, 2026

Summary

  • Bump engines.node from 22.x to 24.x
  • Drop npm i -g npm@latest from the publish workflow (no longer needed)

Why

The Publish npm packages workflow has been failing since #160 (April 6) with:

npm error code MODULE_NOT_FOUND
npm error Cannot find module 'promise-retry'

Root cause is a known regression in the Node 22.22.2 toolcache image: the bundled npm 10.9.7 has a broken dependency tree (missing promise-retry), so any command that triggers @npmcli/arborist — including npm i -g npm@latest — fails immediately.

Node 24 (current Active LTS) ships npm 11.x which already supports trusted publishing (OIDC), so the global npm upgrade step becomes unnecessary.

Refs:

The pre-cached npm 10.9.7 in Node 22.22.2 toolcache has a broken
module tree (missing promise-retry), which makes `npm i -g npm@latest`
fail with MODULE_NOT_FOUND. Upgrading to Node 24 ships npm 11.x with
OIDC (trusted publishing) support, so the global npm upgrade step is
no longer needed.

Refs:
- actions/runner-images#13883
- nodejs/node#62425

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@remiposo remiposo marked this pull request as ready for review April 24, 2026 02:45
@remiposo remiposo requested a review from a team as a code owner April 24, 2026 02:45
@remiposo remiposo merged commit 15a3ef8 into main Apr 24, 2026
6 checks passed
@remiposo remiposo deleted the ci/bump-node-24 branch April 24, 2026 03:06
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.

2 participants