Skip to content

fix: use corepack to upgrade npm for OIDC publishing#28

Merged
Sachchaa merged 1 commit into
mainfrom
claude/eager-ptolemy-D3tOl
May 22, 2026
Merged

fix: use corepack to upgrade npm for OIDC publishing#28
Sachchaa merged 1 commit into
mainfrom
claude/eager-ptolemy-D3tOl

Conversation

@Sachchaa
Copy link
Copy Markdown
Owner

Summary

Updates the npm upgrade step in the release workflow to use corepack instead of directly calling npm install -g npm@latest. This works around a bug in Node 22.22.2's bundled npm 10.9.7, which has a broken arborist that fails to load due to a missing promise-retry dependency.

By routing the global npm install through corepack (which fetches a healthy npm version), we avoid the MODULE_NOT_FOUND error that would otherwise abort the self-upgrade process.

Fixes nodejs/node#62425 and npm/cli#9151.

Test plan

N/A - This is a CI workflow configuration fix. The change will be validated when the release workflow runs.

Release

  • This is an internal / CI-only change

Notes for reviewers

The change is minimal and surgical—only the npm upgrade command is modified to use corepack as an intermediary. This ensures the release workflow can successfully upgrade npm to 11.5.1+ for OIDC trusted publishing, even when running on Node 22.22.2.

https://claude.ai/code/session_01QnqHcaFmaudSvse6GSEY5Q

… npm

Node 22.22.2's GitHub Actions toolcache ships a broken npm 10.9.7 whose
arborist fails to load (missing promise-retry), so the release job's
`npm install -g npm@latest` self-upgrade aborts with MODULE_NOT_FOUND.
Run the global install via a healthy npm fetched by corepack, which gets
npm 11.x onto PATH for OIDC trusted publishing.

https://claude.ai/code/session_01QnqHcaFmaudSvse6GSEY5Q
@vercel
Copy link
Copy Markdown

vercel Bot commented May 22, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
react-timegrid-storybook Ready Ready Preview, Comment May 22, 2026 10:53am

@Sachchaa Sachchaa merged commit 90a737a into main May 22, 2026
3 checks passed
@Sachchaa Sachchaa deleted the claude/eager-ptolemy-D3tOl branch May 22, 2026 10:54
@github-actions
Copy link
Copy Markdown

🎉 This PR is included in version 1.0.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Possible NodeJS 22.22.2 regression when installing latest NPM

2 participants