Skip to content

fix(ci): pin npm to 11.15.0 so npm stage publish works#10935

Merged
jasonsaayman merged 2 commits into
axios:v1.xfrom
shaanmajid:fix/pin-npm-v1x
May 24, 2026
Merged

fix(ci): pin npm to 11.15.0 so npm stage publish works#10935
jasonsaayman merged 2 commits into
axios:v1.xfrom
shaanmajid:fix/pin-npm-v1x

Conversation

@shaanmajid

@shaanmajid shaanmajid commented May 23, 2026

Copy link
Copy Markdown
Contributor

Summary

Currently, attempted publishes will fail due to the staged publishing change merged in #10926; staged publishing requires an npm version of 11.15.0 (latest at the time of writing) or higher, but the default npm version shipped on Node 26.2.0 is currently 11.13.0.

This PR upgrades and pins the npm version used during published to 11.15.0; this is intended to be a short-lived shim until the default npm version shipped via actions/setup-node is bumped.


Summary by cubic

Pins npm to 11.15.0 in the publish workflow to enable staged publishing and unblock releases on Node 26.2. Temporary until actions/setup-node ships npm >= 11.15.0.

Description

  • Summary of changes: Add a step in .github/workflows/publish.yml to install npm@11.15.0 before install/publish.
  • Reasoning: npm stage publish requires npm >= 11.15.0; Node 26.2 defaults to 11.13.0, causing publish failures.
  • Additional context: Remove the pin once actions/setup-node bundles npm >= 11.15.0.

Docs

  • Add a note in /docs/ (release process) that CI pins npm@11.15.0 for staged publishing and that this is temporary.

Testing

  • No tests added. CI-only change; not needed. Validate by running the publish workflow on a pre-release tag.

Semantic version impact

  • Patch: infrastructure-only; no public API or behavior changes to published packages.

Written for commit 13bd1e7. Summary will update on new commits. Review in cubic

@shaanmajid shaanmajid requested a review from jasonsaayman as a code owner May 23, 2026 03:05

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 1 file

Confidence score: 5/5

  • Automated review surfaced no issues in the provided summaries.
  • No files require special attention.

Re-trigger cubic

@shaanmajid shaanmajid changed the title Fix/pin npm v1x fix(ci): pin npm to 11.15.0 so npm stage publish works May 23, 2026
@jasonsaayman jasonsaayman added priority::medium A medium priority commit::ci The PR is related to CI labels May 24, 2026
@jasonsaayman jasonsaayman merged commit d3fadc9 into axios:v1.x May 24, 2026
25 checks passed
jasonsaayman pushed a commit that referenced this pull request May 28, 2026
* fix(ci): pin npm to 11.15.0 so npm stage publish works

* docs(ci): note npm pin is temporary until node bundles npm 11.15.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

commit::ci The PR is related to CI priority::medium A medium priority

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants