ci: bump pinned Node to 22.22.2 to fix npm@latest EBADENGINE#246
Conversation
npm@latest now resolves to npm@12, whose engines field requires Node ^22.22.2 || ^24.15.0 || >=26. The publish jobs pinned Node 22.14.0, so "npm install -g npm@latest" failed with EBADENGINE. Bump the pin to 22.22.2 to satisfy the requirement while keeping the latest npm for OIDC provenance support. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01X4h6iYSAmtDjNuDn3wXaGj
|
Note Gemini is unable to generate a review for this pull request due to the file types involved not being currently supported. |
|
Warning Review limit reached
Next review available in: 50 minutes Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughThe publish-npm.yml GitHub Actions workflow is updated to use Node.js version 22.22.2 instead of 22.14.0 in three separate actions/setup-node@v4 steps across the build, publish-packages, and publish-single jobs. ChangesWorkflow Node.js Version Update
Estimated code review effort: 1 (Trivial) | ~2 minutes Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
All reported issues were addressed across 1 file
Reply with feedback, questions, or to request a fix.
Re-trigger cubic
Node 22.22.2 ships a broken bundled npm 10.9.7 whose module tree is missing promise-retry, so "npm install -g npm@latest" fails with MODULE_NOT_FOUND (nodejs/node#62425, actions/runner-images#13883). Node 22.22.3 bundles npm 10.9.8 which fixes the tree, still satisfies npm@12's engines requirement (^22.22.2), and keeps the single npm upgrade step working for OIDC provenance. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01X4h6iYSAmtDjNuDn3wXaGj
|
Good catch — the regression is real. Node 22.22.2's toolcache build ships a broken bundled npm 10.9.7 (missing I went with a cleaner fix than the two-step workaround: pinning Node 22.22.3 instead. It bundles npm 10.9.8, which fixes the module tree at the source, still satisfies npm@12's Generated by Claude Code |
What
Bumps the pinned Node version in
.github/workflows/publish-npm.ymlfrom22.14.0to22.22.2(all threesetup-nodesteps).Why
The publish workflow run failed on every publish job at the
Update npm for OIDC supportstep:npm install -g npm@latestnow resolves to npm@12.0.0, whoseenginesfield requires Node^22.22.2 || ^24.15.0 || >=26. The workflow pinned Node22.14.0, which is below the new 22.x floor, so npm refused to install withEBADENGINE. Nothing in the source changed — a new npm major raised its minimum Node requirement.Fix
Bumping the Node pin to
22.22.2satisfies npm 12's engine requirement while keepingnpm@latest(needed for OIDC provenance / trusted publishing). This stays within the same Node 22.x major line, so it's a low-risk change. Two alternatives — pinningnpm@11or dropping the upgrade step — were rejected because the step deliberately wants a recent npm for OIDC support.🤖 Generated with Claude Code
Generated by Claude Code