Skip to content

Fix release clean install - #262

Merged
fraserxu merged 1 commit into
masterfrom
codex/fix-release-npm-version
Jul 11, 2026
Merged

fraserxu merged 1 commit into
masterfrom
codex/fix-release-npm-version

Conversation

@fraserxu

@fraserxu fraserxu commented Jul 11, 2026 •

Copy link
Copy Markdown
Owner

What changed

  • Pin the release workflow to npm 11.6.1, matching the version used by the green CI matrix.

Why

The v2.0.0 release run installed npm 11.18.0, then failed during npm ci because that npm version rejected the existing lockfile's optional @emnapi dependency resolution. The publish step never ran.

Impact

Release-triggered installs can complete again, allowing trusted publishing to reach npm publish.

Validation

  • npm ci with Node 24.10.0 and npm 11.6.1
  • npm run check (typecheck, 12 tests, build)
  • npm pack --dry-run

Note

Low Risk
Single workflow version pin with no application or dependency logic changes.

Overview
The release workflow鈥檚 global npm install is downgraded from 11.18.0 to 11.6.1, aligning with the version already pinned in the CI matrix.

This avoids npm ci failing on publish (e.g. v2.0.0) when newer npm rejects the lockfile鈥檚 optional @emnapi resolution, so the publish step can run again.

Reviewed by Cursor Bugbot for commit 957f818. Bugbot is set up for automated code reviews on this repo. Configure here.

@fraserxu
fraserxu marked this pull request as ready for review July 11, 2026 09:05
@fraserxu
fraserxu merged commit 26864ad into master Jul 11, 2026
4 checks passed
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