Skip to content

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

Merged
kdaviduik merged 1 commit into
mainfrom
node-version
Aug 27, 2026
Merged

kdaviduik merged 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
Comment thread .github/workflows/ci.yml
pull_request:

jobs:
check-node-version:

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

This is like the hydrogen check too right?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

yep exactly!

@kdaviduik
kdaviduik merged commit bd34350 into main Aug 27, 2026
5 checks passed
@kdaviduik
kdaviduik deleted the node-version branch August 27, 2026 15:43
kdaviduik added a commit that referenced this pull request Sep 15, 2026
Replace static NPM_TOKEN authentication with OIDC token exchange for
npm publishing. OIDC provides short-lived tokens derived from the
GitHub Actions workflow identity, eliminating the risk of long-lived
credential compromise.

Key changes:
- Remove NODE_AUTH_TOKEN env var (leaving it undefined triggers OIDC)
- Set NPM_TOKEN to empty string (forces OIDC fallback)
- Add a Test OIDC Token step that verifies the OIDC token exchange
  succeeds before the publish step runs
- Fix package.json repository field from SSH shorthand to structured
  HTTPS format (required for OIDC provenance attestation)
- id-token: write permission already present on main

Node 24 (bundling npm 11 with native OIDC support) already landed on
main via PR #955, so no node bump is needed here.

Build gate: verified build + 794 tests pass on Node 24.14.0 (npm 11.9.0)

Snapit OIDC migration deferred — only npm-release.yml is configured as
a Trusted Publisher on npmjs.com. Snapit continues using NPM_TOKEN.

Co-Authored-By: Claude <noreply@anthropic.com>
kdaviduik added a commit that referenced this pull request Sep 15, 2026
Replace static NPM_TOKEN authentication with OIDC token exchange for
npm publishing. OIDC provides short-lived tokens derived from the
GitHub Actions workflow identity, eliminating the risk of long-lived
credential compromise.

Key changes:
- Remove NODE_AUTH_TOKEN env var (leaving it undefined triggers OIDC)
- Set NPM_TOKEN to empty string (forces OIDC fallback)
- Add a Test OIDC Token step that verifies the OIDC token exchange
  succeeds before the publish step runs
- Fix package.json repository field from SSH shorthand to structured
  HTTPS format (required for OIDC provenance attestation)
- id-token: write permission already present on main

Node 24 (bundling npm 11 with native OIDC support) already landed on
main via PR #955, so no node bump is needed here.

Build gate: verified build + 794 tests pass on Node 24.14.0 (npm 11.9.0)

Snapit OIDC migration deferred — only npm-release.yml is configured as
a Trusted Publisher on npmjs.com. Snapit continues using NPM_TOKEN.

Co-Authored-By: Claude <noreply@anthropic.com>
kdaviduik added a commit that referenced this pull request Sep 15, 2026
Replace static NPM_TOKEN authentication with OIDC token exchange for
npm publishing. OIDC provides short-lived tokens derived from the
GitHub Actions workflow identity, eliminating the risk of long-lived
credential compromise.

Key changes:
- Remove NODE_AUTH_TOKEN env var (leaving it undefined triggers OIDC)
- Set NPM_TOKEN to empty string (forces OIDC fallback)
- Add a Test OIDC Token step that verifies the OIDC token exchange
  succeeds before the publish step runs
- Fix package.json repository field from SSH shorthand to structured
  HTTPS format (required for OIDC provenance attestation)
- id-token: write permission already present on main

Node 24 (bundling npm 11 with native OIDC support) already landed on
main via PR #955, so no node bump is needed here.

Build gate: verified build + 794 tests pass on Node 24.14.0 (npm 11.9.0)

Snapit OIDC migration deferred — only npm-release.yml is configured as
a Trusted Publisher on npmjs.com. Snapit continues using NPM_TOKEN.

Co-Authored-By: Claude <noreply@anthropic.com>
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