Skip to content

(ci) 21.2.x - Pin npm to version 11 in publish workflow#17410

Merged
dkamburov merged 1 commit into
21.2.xfrom
btraykov/21.2.x-pin-npm-11
Jul 10, 2026
Merged

(ci) 21.2.x - Pin npm to version 11 in publish workflow#17410
dkamburov merged 1 commit into
21.2.xfrom
btraykov/21.2.x-pin-npm-11

Conversation

@turbobobbytraykov

Copy link
Copy Markdown
Contributor

Pinned the update of npm to 11 because the latest LTS (12.0.0) introduces a show-stopper bug that causes an error when used with Trusted Publishing.

Closes #
N/A

Description

Having this step is mandatory for node 20 and earlier builds of 22.

Motivation / Context

The latest compatible version of the npm cli client ships with a show-stopper bug right now: npm/cli#9722 and we want to avoid hitting it.

Type of Change (check all that apply):

  • Bug fix
  • New functionality
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Refactoring (no functional changes)
  • Documentation
  • Demos
  • [x ] CI/CD
  • Tests
  • Changelog
  • Skills/Agents

Component(s) / Area(s) Affected:

N/A

How Has This Been Tested?

N/A

Test Configuration:

N/A

Screenshots / Recordings

N/A

Checklist:

  • All relevant tags have been applied to this PR
  • This PR includes unit tests covering all the new code (test guidelines)
  • This PR includes API docs for newly added methods/properties (api docs guidelines)
  • This PR includes feature/README.MD updates for the feature docs
  • This PR includes general feature table updates in the root README.MD
  • This PR includes CHANGELOG.MD updates for newly added functionality
  • This PR contains breaking changes
  • This PR includes ng update migrations for the breaking changes (migrations guidelines)
  • This PR includes behavioral changes and the feature specification has been updated with them
  • Accessibility (ARIA, keyboard navigation, focus management) has been verified

Replaced npm update step with npm pinning to version 11 to avoid issues.

Copilot AI 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.

Pull request overview

This PR updates the npm publish GitHub Actions workflow to avoid a known breaking regression in npm@latest (currently npm 12) by pinning npm to major version 11 during the publish job.

Changes:

  • Replaced the “Update NPM” step (npm@latest) with a pinned npm install (npm@11).
  • Added an inline reference to the upstream npm CLI issue prompting the pin.

@dkamburov dkamburov enabled auto-merge July 10, 2026 14:06
@dkamburov dkamburov disabled auto-merge July 10, 2026 14:17
@dkamburov dkamburov merged commit ae5fc45 into 21.2.x Jul 10, 2026
6 checks passed
@dkamburov dkamburov deleted the btraykov/21.2.x-pin-npm-11 branch July 10, 2026 14:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants