Skip to content

(ci) Pin npm version to 11 in workflow#2290

Open
turbobobbytraykov wants to merge 2 commits into
masterfrom
btraykov/install-npm-11
Open

(ci) Pin npm version to 11 in workflow#2290
turbobobbytraykov wants to merge 2 commits into
masterfrom
btraykov/install-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

Updated npm-publish workflow to pin npm version to 11 and added comments for clarity.
Copilot AI review requested due to automatic review settings July 10, 2026 12:44

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 the current npm v12 Trusted Publishing regression by ensuring the workflow uses npm v11 during the publish job.

Changes:

  • Updates the workflow permissions annotation for id-token: write (OIDC / Trusted Publishing context).
  • Replaces the prior “Update NPM” step with a single install of npm v11 to avoid npm/cli issue #9722.

Comment thread .github/workflows/npm-publish.yml Outdated
Comment thread .github/workflows/npm-publish.yml
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
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.

2 participants