Skip to content

fix(ci): unpin Node/npm engine mismatch breaking publish#57

Merged
yosriady merged 1 commit into
mainfrom
fix/publish-node-npm-engine-mismatch
Jul 21, 2026
Merged

fix(ci): unpin Node/npm engine mismatch breaking publish#57
yosriady merged 1 commit into
mainfrom
fix/publish-node-npm-engine-mismatch

Conversation

@yosriady

@yosriady yosriady commented Jul 21, 2026

Copy link
Copy Markdown
Contributor

npm install -g npm@latest began resolving to npm 12.0.1, whose engines require Node ^22.22.2 || ^24.15.0 || >=26.0.0. The release workflow pins Node 22.14.0, so the step failed with EBADENGINE and the v1.0.0 publish never ran. Nothing in the repo changed -- npm 12 shipped and moved the floor under a floating dist-tag.

Bump Node to 22.23.1 (current v22 LTS patch, satisfies ^22.22.2) and pin npm to the major (npm@12) so the next npm major cannot silently break releases again. The step exists only because Node 22 bundles npm 10.9.x, which predates the OIDC trusted publishing support added in 11.5.1.

Node is bumped in ci.yml too, since CI and release are deliberately kept on the same pin and drift between them is its own hazard.


View with Codesmith Autofix with Codesmith
Need help on this PR? Tag /codesmith with what you need. Autofix is disabled.

`npm install -g npm@latest` began resolving to npm 12.0.1, whose engines
require Node ^22.22.2 || ^24.15.0 || >=26.0.0. The release workflow pins
Node 22.14.0, so the step failed with EBADENGINE and the v1.0.0 publish
never ran. Nothing in the repo changed -- npm 12 shipped and moved the
floor under a floating dist-tag.

Bump Node to 22.23.1 (current v22 LTS patch, satisfies ^22.22.2) and pin
npm to the major (npm@12) so the next npm major cannot silently break
releases again. The step exists only because Node 22 bundles npm 10.9.x,
which predates the OIDC trusted publishing support added in 11.5.1.

Node is bumped in ci.yml too, since CI and release are deliberately kept
on the same pin and drift between them is its own hazard.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@yosriady
yosriady merged commit af2300d into main Jul 21, 2026
10 checks passed
@yosriady
yosriady deleted the fix/publish-node-npm-engine-mismatch branch July 21, 2026 09:05
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