Skip to content

ci: fix npm publish workflow failure on npm upgrade step#173

Merged
federiconeri merged 2 commits intomainfrom
fix/publish-npm-upgrade-failure
Apr 7, 2026
Merged

ci: fix npm publish workflow failure on npm upgrade step#173
federiconeri merged 2 commits intomainfrom
fix/publish-npm-upgrade-failure

Conversation

@federiconeri
Copy link
Copy Markdown
Owner

@federiconeri federiconeri commented Apr 7, 2026

Problem

Publish run https://github.com/federiconeri/wiggum-cli/actions/runs/24093561110 failed in job 70286165217 at step "Upgrade npm for OIDC trusted publishing".

Error:

  • npm install -g npm@latest
  • MODULE_NOT_FOUND: Cannot find module promise-retry

Fix

  • remove npm self-upgrade step from .github/workflows/publish.yml
  • keep actions/setup-node@v6 + OIDC publish flow
  • add check-latest: true so setup-node resolves latest patched Node 22 toolchain (and bundled npm patch level)

Why this is safe

  • avoids fragile global npm mutation during publish
  • keeps publish deterministic while still tracking patch updates in the selected major runtime line

@federiconeri federiconeri merged commit fd8573d into main Apr 7, 2026
5 checks passed
@federiconeri federiconeri deleted the fix/publish-npm-upgrade-failure branch April 7, 2026 17:07
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