Skip to content

Commit 282e2a7

Browse files
authored
Merge pull request #247 from Calnode/chore/node-26-lts
chore(ci): move CI and Docker to Node 26 LTS (#244)
2 parents bc0b946 + be77ac4 commit 282e2a7

3 files changed

Lines changed: 8 additions & 4 deletions

File tree

‎.github/workflows/audit.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ jobs:
8585

8686
- uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
8787
with:
88-
node-version: 22
88+
node-version: 26
8989
cache: pnpm
9090
cache-dependency-path: frontend/pnpm-lock.yaml
9191

‎.github/workflows/ci.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ jobs:
8181

8282
- uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
8383
with:
84-
node-version: 22
84+
node-version: 26
8585
cache: pnpm
8686
cache-dependency-path: frontend/pnpm-lock.yaml
8787

‎Dockerfile‎

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,15 @@
99
# identical for every architecture. Without this pin a multi-arch build (buildx:
1010
# linux/amd64,linux/arm64) runs pnpm install and pnpm build a second time under QEMU
1111
# for arm64, which is slow and occasionally hangs for hours.
12-
FROM --platform=$BUILDPLATFORM node:22-alpine@sha256:fe4f6d74e20370acb04ad889077d14d0f64a9c8ea6a42bc60cddf1e844699914 AS frontend-builder
12+
FROM --platform=$BUILDPLATFORM node:26-alpine@sha256:8996bb5821d62a8fd9bb27c1cb07462f3fdce6e47d640c6a881ead0b064ce216 AS frontend-builder
1313

1414
# Pin pnpm to the version in package.json's `packageManager` field (not @latest)
1515
# so CI builds are reproducible and match the committed lockfile.
16-
RUN corepack enable && corepack prepare pnpm@10.32.1 --activate
16+
#
17+
# Installed with npm, not corepack: Node 25+ no longer bundles corepack, so
18+
# `corepack enable` fails on node:26-alpine with "corepack: not found". Installing
19+
# the pinned version directly keeps the same guarantee without that dependency.
20+
RUN npm install -g pnpm@10.32.1
1721

1822
WORKDIR /app
1923

0 commit comments

Comments
 (0)