Repository navigation
ci: install deps before upgrading npm - #8
Merged
Merged
Conversation
Second release attempt failed the same way as the first, and the Node version
was not the cause. npm 11 blocks dependency install scripts unless they are
listed in allowScripts:
npm warn install-scripts 2 packages had install scripts blocked
better-sqlite3@11.10.0 (install: prebuild-install || node-gyp rebuild)
Because the workflow ran `npm install -g npm@latest` BEFORE `npm ci`, the
native module was never built and `npm run fixture` died with "Could not
locate the bindings file". ci.yml passes because it installs with the npm
bundled with Node.
Fix is ordering, not configuration: install with the bundled npm exactly as
ci.yml does, then upgrade npm immediately before publish, which is the only
step that needs 11.5.x for OIDC.
Not using allowScripts: local npm here is 10.9.8 and does not know the key, so
the syntax cannot be verified before pushing, and an unverified config change
is how the last two attempts were spent. Worth revisiting when npm 11 ships as
the bundled default, because local `npm ci` will hit the same block then.
The OIDC handshake is still unverified; no run has reached `npm publish` yet.
Claude-Session: https://claude.ai/code/session_01LMbjcZogpv9EbVnqovXpSX
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Second release attempt failed identically to the first, and Node 22 vs 24 was not the cause.
npm 11 blocks dependency install scripts by default:
The workflow ran
npm install -g npm@latestbeforenpm ci, so better-sqlite3's prebuild step never ran andnpm run fixturedied withCould not locate the bindings file.ci.ymlpasses because it installs with the npm bundled with Node.Fix is ordering, not configuration: install with the bundled npm exactly as CI does, then upgrade npm immediately before
npm publish— the only step that needs 11.5.x for OIDC.Not using
allowScripts: local npm here is 10.9.8 and doesn't know the key, so its syntax can't be verified before pushing, and unverified config changes are how the last two attempts were spent. Worth revisiting when npm 11 becomes the bundled default, because localnpm ciwill hit the same block then.The OIDC handshake remains unverified — no run has reached
npm publishyet. Re-tagging v2.1.1 onto this is the test.https://claude.ai/code/session_01LMbjcZogpv9EbVnqovXpSX