Skip to content

Fix npm publish workflow (Node 22, pin npm@12) - #25

Merged
kburov-sc merged 1 commit into
mainfrom
kburov/fix-npm-publish-engine
Sep 3, 2026
Merged

Fix npm publish workflow (Node 22, pin npm@12)#25
kburov-sc merged 1 commit into
mainfrom
kburov/fix-npm-publish-engine

Conversation

@kburov-sc

Copy link
Copy Markdown
Collaborator

Background
The v1.1.0 Publish to npm run failed before publishing: the latest npm now requires Node >=22.22.2, but CI still ran the EOL Node 20, so the Trusted Publishing upgrade step errored out.

Change
Move CI and local dev to Node 22, and pin the publish step to a fixed npm major so a future npm engine bump can't silently break releases again.

Test Plan
Build check green on this PR; after merge, re-point the v1.1.0 tag to re-trigger publish.

npm@latest is now 12.x, which requires Node >=22.22.2 and dropped
Node 20 support, breaking the "Upgrade npm for Trusted Publishing"
step (npm ci EBADENGINE) and blocking the v1.1.0 release. Node 20 is
also EOL. Bump CI (and .nvmrc for local parity) to Node 22.x and pin
npm to 12 so a future npm engine bump can't silently break publishing.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@kburov-sc
kburov-sc merged commit 6e0e0b4 into main Sep 3, 2026
1 check passed
@kburov-sc
kburov-sc deleted the kburov/fix-npm-publish-engine branch September 3, 2026 06:11
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