Repository navigation
fix(release): stay on npm 11 for the v1 release - #1159
Conversation
npm@latest is now 12, which turns an unknown flag into an error. pnpm 10 (pinned on this branch) forwards --git-checks to npm publish, so every publish failed with EUNKNOWNCONFIG. npm 11 still supports trusted publishing (>= 11.5.1) and only warns. Reproduced with npm 12.2.3 (error) and 11.21.3 (warning). Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
|
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the
|
Summary
Follow-up to #1158. After the trusted-publishing workflow merged, the
v1Release run got further but every publish failed with:Cause
The workflow runs
npm install -g npm@latest, andlatestis now npm 12 (12.2.3).v1pinspnpm@10.12.1, which forwards its own--git-checksflag tonpm publish. npm 11 only warns about unknown flags ("this will stop working in the next major version"), and npm 12 makes it an error.mainusespnpm@11.9.0, which doesn't forward it, somain's release is unaffected.Reproduced locally with
npm publish --dry-run --git-checks --tag solid-1:npm@12.2.3fails with the exact CI error,npm@11.21.3warns and succeeds.Change
npm install -g npm@latest→npm install -g npm@11in.github/workflows/release-tagged.yml. npm 11 still supports trusted publishing (needs >= 11.5.1).After merging
Merging pushes to
v1, which starts another publish attempt for the waiting versions (list in #1157), still under thesolid-1tag. Packages that are not registered for trusted publishing will 404, as discussed.Verification
Dry-run reproduction only. I can't test OIDC publishing without a real release run.
🤖 Generated with Claude Code