Skip to content

[CI] Fix NPM package publishing error - #4079

Merged
brandonpayton merged 1 commit into
trunkfrom
ci-fix-npm-publishing
Jul 16, 2026
Merged

[CI] Fix NPM package publishing error#4079
brandonpayton merged 1 commit into
trunkfrom
ci-fix-npm-publishing

Conversation

@brandonpayton

Copy link
Copy Markdown
Member

Motivation for the change, related issues

Our NPM publishing workflow is currently broken because an install of npm@latest is bringing npm version 12.x which doesn't support the Node.js 20.x version we've selected.

Implementation details

To stop the bleeding, let's explicitly install npm@11 so publishing works again. Using an explicit major NPM version is probably preferable anyway to avoid these kinds of issues in the future.

Testing Instructions (or ideally a Blueprint)

Merge this one-line change and test. This isn't too risky since the workflow is already broken and the PR is just an npm version change.

Our NPM publishing workflow is currently broken because an install of `npm@latest` is bringing npm version 12.x which doesn't support the Node.js 20.x version we've selected. To stop the bleeding, let's explicitly install npm@11 so publishing works again. Using an explicit major NPM version is probably preferable anyway to avoid these kinds of issues in the future.
@brandonpayton
brandonpayton requested review from a team, Copilot and zaerl July 16, 2026 00:29
@brandonpayton brandonpayton added the [Type] Bug An existing feature does not function as intended label Jul 16, 2026

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

Note

Copilot was unable to run its full agentic suite in this review.

This PR fixes the broken NPM publishing GitHub Actions workflow by pinning npm to a compatible major version instead of installing npm@latest, which started resolving to an incompatible release.

Changes:

  • Pin global npm upgrade step from npm@latest to npm@11 for the publish workflow

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread .github/workflows/publish-npm-packages.yml
@brandonpayton
brandonpayton merged commit 13c109e into trunk Jul 16, 2026
51 checks passed
@brandonpayton
brandonpayton deleted the ci-fix-npm-publishing branch July 16, 2026 00:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

[Type] Bug An existing feature does not function as intended

2 participants