Skip to content

ci: use .nvmrc (Node 24) in all workflows - #2142

Closed
tac0turtle wants to merge 1 commit into
dydxprotocol:mainfrom
tac0turtle:ci/node-24
Closed

tac0turtle wants to merge 1 commit into
dydxprotocol:mainfrom
tac0turtle:ci/node-24

Conversation

@tac0turtle

Copy link
Copy Markdown

Changes

package.json engines ("node": "=24") and .nvmrc (24) already require Node 24, but the workflows didn't match:

Workflow Before After
ci.yml 18 .nvmrc (24)
run-e2e.yml 18 .nvmrc (24)
deploy-staging.yml 18 .nvmrc (24)
deploy-testnet.yml 18 .nvmrc (24)
commitlint.yml 22 .nvmrc (24)

All five now use node-version-file: .nvmrc instead of a hard-coded number, so CI follows the repo's declared runtime and can't drift from it again. Each workflow already checks out the repo before setup-node.

Node 18 is EOL. The deploy workflows run vite build, and Vite 7 needs Node >=20.19, so they couldn't build on 18.

Verification

  • All five workflow files parse as valid YAML
  • Locally, Node 24.12 passes install, tsc, vitest, lint and vite build (see chore: upgrade pnpm 8.6.6 -> 10.34.9 #2141)
  • The deploy and e2e workflows haven't run on this branch. Please trigger a staging deploy.

Outside this repo: if Vercel builds the app, its Node version is a project setting, not anything in vercel.json. Check that it's on 24.x.

Issue

Four workflows ran Node 18 (EOL) and commitlint ran 22, while
package.json engines and .nvmrc require 24. The deploy workflows run
vite build, and Vite 7 needs Node >=20.19, so they could not build on 18.

Read the version from .nvmrc via setup-node's node-version-file so CI
cannot drift from the repo's declared runtime again.
@tac0turtle
tac0turtle requested a review from a team as a code owner November 20, 2026 13:24
@vercel

vercel Bot commented Nov 20, 2026

Copy link
Copy Markdown

@tac0turtle is attempting to deploy a commit to the dYdX Trading Team on Vercel.

A member of the Team first needs to authorize it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants