Skip to content

Conversation

pxrl
Copy link
Contributor

@pxrl pxrl commented Aug 14, 2025

16 is long EoL but we were in practice using 20 in CI.

pxrl added 2 commits August 14, 2025 10:17
The Linea SDK is a painful dependency in that it depends on
better-sqlite3, and that seems to have build issues when migrating to
node 22.

The Linea SDK is only required here for a single script that's never
actually been needed in production. To simplify things, we can migrate
it to the relayer repository where we already have to deal with the
Linea SDK dependencies.
16 is long EoL but we were in practice using 20 in CI.
if command -v node >/dev/null 2>&1; then
if node --version 2>/dev/null | grep -q "v${{ inputs.node_version }}"; then
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This pre-existing check would resolve true if the installed version of node was different to what was specified via inputs.node_version. Harden it a bit by verifying that the actual installed version of node reports something that gives a strong hint at being the right version. This should be compatible with specifying additional constraints on the version - i.e. minor and patch levels.

I wonder if there's a cleaner way to do this - i.e. I'd suspect setup-node has some built-in version checker, but since action was only recently by @Reinis-FRP I'm assuming there was some blocker there.

@pxrl pxrl changed the title chore: Bump node 16 -> 22 chore: Bump node 16 (20) -> 22 Aug 14, 2025
nicholaspai
nicholaspai previously approved these changes Aug 14, 2025
fusmanii
fusmanii previously approved these changes Aug 14, 2025
Base automatically changed from pxrl/bumpLineaSDK to master August 14, 2025 14:28
@pxrl pxrl dismissed stale reviews from fusmanii and nicholaspai August 14, 2025 14:28

The base branch was changed.

@pxrl pxrl requested review from nicholaspai and fusmanii August 14, 2025 14:28
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.

3 participants