Skip to content

ci(publish): pin npm for trusted publishing#539

Merged
remiroyc merged 1 commit intomainfrom
fix/publish-pin-npm-11-11-0
Apr 2, 2026
Merged

ci(publish): pin npm for trusted publishing#539
remiroyc merged 1 commit intomainfrom
fix/publish-pin-npm-11-11-0

Conversation

@prd-carapulse
Copy link
Copy Markdown
Contributor

@prd-carapulse prd-carapulse bot commented Apr 2, 2026

Summary

  • pin the publish workflow to npm@11.11.0 instead of npm@latest
  • avoid the Node 22 / npm 10.9.7 self-upgrade bug that fails with Cannot find module "promise-retry"
  • keep npm >= 11.5.1 for OIDC trusted publishing

Validation

  • inspected failing main run 23901996227 and confirmed the failures are at npm install -g npm@latest
  • reproduced the failure locally with Node v22.22.2 / npm 10.9.7
  • verified npm install -g npm@11.11.0 succeeds in the same environment

Pin the publish workflow to npm 11.11.0 because the current Node 22 bundled npm 10.9.7 fails to self-upgrade directly to npm@latest with MODULE_NOT_FOUND (missing promise-retry), while npm trusted publishing only requires npm >= 11.5.1.

Repro: GitHub Actions run 23901996227 and local Node v22.22.2 / npm 10.9.7 repro.
@remiroyc remiroyc requested review from Rubilmax and oumar-fall April 2, 2026 13:38
@remiroyc remiroyc merged commit fb9f158 into main Apr 2, 2026
16 checks passed
@remiroyc remiroyc deleted the fix/publish-pin-npm-11-11-0 branch April 2, 2026 13:42
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