Skip to content

Commit 448443a

Browse files
authored
chore: bump internal node to 22 and standardise (#4084)
Bumps the internal/toolchain Node version to the latest 22.x LTS (`22.23.1`) and standardises it across the repo. Scope is the **platform toolchain + the repo's own runtime images** (all `20 → 22` *upgrades*, off the now-EOL node 20). ### Main changes - Node `20.20.2 → 22.23.1` across all CI workflows, `.nvmrc`, `CONTRIBUTING.md`, and the OSS `docker/Dockerfile` (digest-pinned). - `@types/node → 22.20.0` (root dep + pnpm `overrides`, so the whole workspace resolves to it); lockfile regenerated. - `sdk-compat` matrix: adds Node 24 + 26 (keeps 20, still in `engines`). - **App runtime images → node 22** (were on EOL node 20): `apps/coordinator` → `node:22.23.1-bookworm-slim`; `apps/docker-provider` + `apps/kubernetes-provider` → `node:22-alpine` (reusing the exact digest `apps/supervisor` already runs, so all four worker images are now identical). Stage aliases renamed off `node-20`. ### Possible issues / test notes - `@types/node` 22.x can surface new TS errors — typecheck (now on 22) is the gate. - **Smoke-test the v3 worker path** — `coordinator` (`crictl`/CRI calls) and the docker/kubernetes providers (talking to their daemons) now run on node 22 (alpine/musl for the providers). Upgrade off EOL so low-risk, but it's deployed runtime code with its own `publish-worker.yml` pipeline.
1 parent 6563793 commit 448443a

36 files changed

Lines changed: 1125 additions & 799 deletions

.github/workflows/changesets-pr.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
- name: Setup node
3737
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
3838
with:
39-
node-version: 20.20.2
39+
node-version: 22.23.1
4040
cache: "pnpm"
4141

4242
- name: Install dependencies

.github/workflows/claude.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ jobs:
4444
- name: ⎔ Setup node
4545
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
4646
with:
47-
node-version: 20.20.2
47+
node-version: 22.23.1
4848
cache: "pnpm"
4949

5050
- name: 📥 Download deps

.github/workflows/code-quality.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
- name: ⎔ Setup node
2626
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
2727
with:
28-
node-version: 20.20.2
28+
node-version: 22.23.1
2929
cache: "pnpm"
3030

3131
- name: 📥 Download deps

.github/workflows/e2e-webapp-auth-full.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ jobs:
8585
- name: ⎔ Setup node
8686
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
8787
with:
88-
node-version: 20.20.2
88+
node-version: 22.23.1
8989
cache: "pnpm"
9090

9191
- name: 🐳 Login to DockerHub

.github/workflows/e2e-webapp.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ jobs:
5959
- name: ⎔ Setup node
6060
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
6161
with:
62-
node-version: 20.20.2
62+
node-version: 22.23.1
6363
cache: "pnpm"
6464

6565
# ..to avoid rate limits when pulling images

.github/workflows/e2e.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
- name: ⎔ Setup node
3838
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
3939
with:
40-
node-version: 20.20.2
40+
node-version: 22.23.1
4141

4242
- name: 📥 Download deps
4343
run: pnpm install --frozen-lockfile --filter trigger.dev...

.github/workflows/pr-testbox-windows.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
- name: ⎔ Setup node
3737
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
3838
with:
39-
node-version: 20.20.2
39+
node-version: 22.23.1
4040

4141
- name: 📥 Download CLI deps
4242
run: pnpm install --frozen-lockfile --filter trigger.dev...

.github/workflows/pr-testbox.yml

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -61,15 +61,10 @@ jobs:
6161
with:
6262
version: 10.33.2
6363

64-
- name: ⎔ Setup Node 22 for SDK compatibility checks
64+
- name: ⎔ Setup node
6565
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
6666
with:
67-
node-version: 22.12
68-
69-
- name: ⎔ Setup active Node 20
70-
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
71-
with:
72-
node-version: 20.20.2
67+
node-version: 22.23.1
7368
cache: "pnpm"
7469

7570
- name: 🥟 Setup Bun

.github/workflows/preview-packages.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ jobs:
5959
- name: ⎔ Setup node
6060
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
6161
with:
62-
node-version: 20.20.0
62+
node-version: 22.23.1
6363
cache: "pnpm"
6464

6565
- name: 📥 Install dependencies

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ jobs:
9090
- name: Setup node
9191
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
9292
with:
93-
node-version: 20.20.2
93+
node-version: 22.23.1
9494
cache: "pnpm"
9595

9696
# npm v11.5.1 or newer is required for OIDC support
@@ -288,7 +288,7 @@ jobs:
288288
- name: Setup node
289289
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
290290
with:
291-
node-version: 20.20.2
291+
node-version: 22.23.1
292292
cache: "pnpm"
293293

294294
# npm v11.5.1 or newer is required for OIDC support

0 commit comments

Comments
 (0)