Skip to content

Fix npm publish: bump Node to 24, pin npm to 11.x (v34)#479

Merged
ndrezn merged 1 commit into
v34from
fix-npm-node-version-v34
Jul 16, 2026
Merged

Fix npm publish: bump Node to 24, pin npm to 11.x (v34)#479
ndrezn merged 1 commit into
v34from
fix-npm-node-version-v34

Conversation

@ndrezn

@ndrezn ndrezn commented Jul 16, 2026

Copy link
Copy Markdown
Member

Why

The v34.3.0 release run failed at the "Upgrade npm for trusted publishing" step with EBADENGINE: npm install -g npm@latest now floats to npm 12, which requires Node >= 22.22/24.15, but the job runs Node 20.

Fix

  • Bump the publish job to Node 24 (also clears the Node 20 deprecation warning).
  • Pin the upgrade to npm@11 (satisfies the npm >= 11.5.1 trusted-publishing requirement without drifting into an incompatible major).

Backport of #478 (into v35) to the v34 branch. Once merged, the v34.3.0 publish can be re-run via workflow_dispatch.

The trusted-publishing upgrade step ran npm install -g npm@latest, which
now resolves to npm 12.x. npm 12 requires Node >= 22.22/24.15, but the
job runs Node 20, so the step fails with EBADENGINE before publish.

Bump the job to Node 24 (also clears the Node 20 deprecation warning) and
pin the upgrade to the 11.x line, which satisfies the npm >= 11.5.1
requirement for trusted publishing.
@sonarqubecloud

Copy link
Copy Markdown

@BSd3v BSd3v left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

💃

@ndrezn
ndrezn merged commit 65b418c into v34 Jul 16, 2026
2 of 3 checks passed
@ndrezn
ndrezn deleted the fix-npm-node-version-v34 branch July 16, 2026 15:46
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.

2 participants