Skip to content

Conversation

gmaclennan
Copy link
Member

Node LTS has changed to v22, and the optic-release workflow runs in the context of node LTS, not the node version we setup in the previous step.

We are using an older version of better-sqlite3 at the moment, which does not include prebuilds for node v22. It's a dependency of @comapeo/core, which is a dev dep here for tests. better-sqlite3 has a postinstall script that tries to download prebuilds, which is failing on the optic release build command npm ci.

This PR adds --ignore-scripts to the optic release build command. This would have an impact if any of the modules we are using in our prepack script rely on install scripts running, but I don't think they do, so I think this is safe to do. Hopefully this will unblock us from running the release workflow for now. We will probably need this change for releasing other packages which have better-sqlite3 as a dep.

@gmaclennan gmaclennan self-assigned this Aug 28, 2025
@gmaclennan gmaclennan requested a review from achou11 August 28, 2025 14:24
Copy link
Member

@achou11 achou11 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks for the explanation! agree that adding the flag here shouldn't have an impact

@gmaclennan gmaclennan merged commit 0b99940 into main Aug 28, 2025
5 checks passed
@gmaclennan gmaclennan deleted the fix/release-workflow-node-lts-errors branch August 28, 2025 14:26
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.

2 participants