Skip to content

ci: publish on Node 22, not 24 - #7

Merged
kaufmanhenry merged 1 commit into
mainfrom
fix/publish-node-version
Sep 29, 2026
Merged

kaufmanhenry merged 1 commit into
mainfrom
fix/publish-node-version

Conversation

@kaufmanhenry

Copy link
Copy Markdown
Owner

The first trusted-publishing run failed before reaching npm publish.

Cause: better-sqlite3 11.10.0 ships no prebuilt binary for Node 24 (ABI 137), so npm ci left the native module unbuilt and npm run fixture threw Could not locate the bindings file. I took Node 24 from npm's docs example without checking it against this package's native dependency — ci.yml only ever tests 18/20/22.

The release job now uses Node 22, the newest version CI actually exercises. npm@latest is still installed for OIDC support (it requires Node ^22.22.2, which setup-node's 22 satisfies), and node/npm versions are echoed so the next runner-image change is diagnosable from the log alone.

The OIDC configuration itself was never reached and is still unverified. Re-tagging v2.1.1 onto this fix is the actual test.

Follow-up, not here: bumping better-sqlite3 to 13.x would unblock Node 24, but that is a dependency upgrade with its own risk and does not belong in a release-pipeline fix.

https://claude.ai/code/session_01LMbjcZogpv9EbVnqovXpSX

The first trusted-publishing run failed before it ever reached npm publish:
better-sqlite3 11.10.0 ships no prebuilt binary for Node 24 (ABI 137), so
`npm ci` left the native module unbuilt and `npm run fixture` threw
"Could not locate the bindings file".

I took 24 from npm's trusted-publishing docs example without checking it
against this package's native dependency. ci.yml tests 18/20/22; the release
job now uses 22, the newest version actually exercised.

npm@latest still gets installed for OIDC support (it needs Node ^22.22.2,
which setup-node's "22" satisfies), and node/npm versions are echoed so the
next runner-image change is diagnosable from the log.

The OIDC configuration itself was never reached and remains unverified.

Claude-Session: https://claude.ai/code/session_01LMbjcZogpv9EbVnqovXpSX
@kaufmanhenry
kaufmanhenry merged commit f0872e2 into main Sep 29, 2026
3 checks passed
@kaufmanhenry
kaufmanhenry deleted the fix/publish-node-version branch September 29, 2026 17:42
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