Skip to content

fix: pin npm version for release publish - #696

Merged
xuefei1313 merged 1 commit into
developfrom
agent/pin-npm-11-for-release
Jul 28, 2026
Merged

fix: pin npm version for release publish#696
xuefei1313 merged 1 commit into
developfrom
agent/pin-npm-11-for-release

Conversation

@xuefei1313

Copy link
Copy Markdown
Contributor

Summary

  • Pin the release publishing npm self-upgrade to npm@11.5.1.
  • Avoid npm 12 rejecting Rush/pnpm's forwarded --no-git-checks option as an unknown CLI config.

Root cause

rush publish uses the pnpm version pinned in rush.json, and that pnpm version forwards --no-git-checks to npm publish. The workflow's unpinned npm@latest upgrade now resolves to npm 12, which fails with EUNKNOWNCONFIG.

Validation

  • Workflow assertion verifies npm is pinned to 11.5.1 and does not reference npm@latest.
  • YAML parsing succeeded.
  • npm exec --package=npm@11.5.1 -- npm --version returned 11.5.1.
  • Local pre-push hook completed rush test --only tag:package.

@xuefei1313
xuefei1313 marked this pull request as ready for review July 28, 2026 11:17
@xuefei1313
xuefei1313 merged commit 3fb2450 into develop Jul 28, 2026
5 of 6 checks passed
@xuefei1313
xuefei1313 deleted the agent/pin-npm-11-for-release branch July 28, 2026 11:17
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