Skip to content

fix: use Node 24 in publish workflow instead of upgrading npm - #35

Merged
BYK merged 1 commit into
masterfrom
fix/publish-node24
May 19, 2026
Merged

BYK merged 1 commit into
masterfrom
fix/publish-node24

Conversation

@BYK

@BYK BYK commented May 19, 2026

Copy link
Copy Markdown
Owner

Summary

Fixes the publish workflow failure where npm install -g npm@latest crashes with MODULE_NOT_FOUND: Cannot find module 'promise-retry'. Node 22's bundled npm 10.9.7 corrupts itself when self-upgrading to npm 11.x.

Changes

  • Switches publish workflow from Node 22 to Node 24, which ships with npm 11.x natively
  • Removes the "Upgrade npm for OIDC trusted publishing" step entirely — no longer needed since npm 11.x supports OIDC out of the box

Node 22's bundled npm 10.9.7 breaks when self-upgrading to npm 11.x
(MODULE_NOT_FOUND for promise-retry). Node 24 ships with npm 11.x
natively, which supports OIDC trusted publishing out of the box.

This removes the 'Upgrade npm for OIDC trusted publishing' step
entirely.
@BYK BYK self-assigned this May 19, 2026
@BYK
BYK merged commit fb41aee into master May 19, 2026
4 checks passed
@BYK
BYK deleted the fix/publish-node24 branch May 19, 2026 16:26
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