Skip to content

chore: bump node to latest LTS + GitHub actions to latest - #955

Open
kdaviduik wants to merge 1 commit into
mainfrom
node-version
Open

chore: bump node to latest LTS + GitHub actions to latest#955
kdaviduik wants to merge 1 commit into
mainfrom
node-version

Conversation

@kdaviduik

@kdaviduik kdaviduik commented Aug 22, 2026

Copy link
Copy Markdown
Contributor

Context

Node 18 reached end of life in April 2025. This bumps all node version references in the repo to v24.19.0 (Krypton), the current active LTS.

Pinned all GitHub Actions to their latest versions by commit SHA (supply-chain best practice, matching Hydrogen's pattern):

  • actions/checkout → v7.0.1
  • actions/setup-node → v7.0.0
  • pnpm/action-setup → v6.0.10

Also adds a new CI job (same as Hydrogen's) to ensure that the node versions in dev.yml and .nvmrc can't go out of sync without CI screaming.

Verifying the pinned SHAs

Each SHA below links to its GitHub commit page so you can confirm it matches the tagged release:

Action Version Commit SHA Verify
actions/checkout v7.0.1 3d3c42e5aac5ba805825da76410c181273ba90b1 commit / release
actions/setup-node v7.0.0 820762786026740c76f36085b0efc47a31fe5020 commit / release
pnpm/action-setup v6.0.10 0977fd99725f1db4007ccb2928dbb4e90d06cc86 commit / release

Why dev.yml can't just read from .nvmrc

The Shopify dev tool requires an explicit exact version in dev.yml — the version field is required and is used to run nvm install . It can't read from .nvmrc. So we can't eliminate the version specification in dev.yml and rely on .nvmrc alone. This is why the two files exist separately and why the sync-check CI job is needed: .nvmrc uses the flexible major version v24 (for nvm) while dev.yml pins the exact v24.19.0 (for the dev tool).

The dev tool does its own .nvmrc ↔ dev.yml check during dev up, but that only runs when a contributor remembers to run it locally. The new CI job catches drift on every PR — including from external contributors who don't have the dev tool.

This mirrors the pattern already in place in Shopify/hydrogen.

Node 18 reached end of life in April 2025. This bumps all node version
references to v24.19.0 (Krypton), the current active LTS.

Why dev.yml can't just read .nvmrc: the Shopify 'dev' tool requires an
explicit exact version in dev.yml (the 'version' field is required and
used to run 'nvm install <version>'), so we can't eliminate it and rely
on .nvmrc alone. .nvmrc uses the flexible major version 'v24' (for nvm
users who want the latest patch automatically) while dev.yml pins the
exact v24.19.0 that the dev tool installs.

To enforce sync between these two files, a new 'check-node-version' CI
job validates that the major version in .nvmrc matches the one in
dev.yml on every PR. This catches drift even when contributors don't
run 'dev up' locally (the dev tool does its own .nvmrc↔dev.yml check
during 'dev up', but that only runs when someone remembers to run it).

Co-authored-by: AI (Pi/GLM 5.2 Fast (Fireworks) [1m]) <noreply@pi.dev>
@kdaviduik kdaviduik changed the title chore: bump node from v18 to v24.19.0 (latest LTS) chore: bump node to latest LTS + GitHub actions to latest Aug 22, 2026
@kdaviduik
kdaviduik marked this pull request as ready for review August 22, 2026 03:18
@kdaviduik
kdaviduik requested a review from a team as a code owner August 22, 2026 03:18
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