Skip to content

Commit 6cad551

Browse files
committed
feat: update Node.js version to 24, adjust pnpm setup, and modify package.json engines
1 parent c24f82a commit 6cad551

3 files changed

Lines changed: 9 additions & 11 deletions

File tree

.github/workflows/build.yml

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -27,18 +27,15 @@ jobs:
2727
working-directory: frontend
2828
steps:
2929
- uses: actions/checkout@v6
30-
- uses: pnpm/action-setup@v4
31-
with:
32-
version: 10
30+
- uses: pnpm/action-setup@v4 # reads pnpm version from packageManager
3331
- uses: actions/setup-node@v6
3432
with:
35-
node-version: "22"
33+
node-version-file: "frontend/.nvmrc" # reads Node version from .nvmrc
3634
cache: "pnpm"
3735
cache-dependency-path: "frontend/pnpm-lock.yaml"
38-
- run: |
39-
pnpm install --frozen-lockfile
40-
pnpm test
41-
pnpm build
36+
- run: pnpm install --frozen-lockfile
37+
- run: pnpm test
38+
- run: pnpm build
4239

4340
docker:
4441
runs-on: ubuntu-latest

frontend/Dockerfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
FROM node:22-alpine AS base
1+
FROM node:24-alpine AS base
22

3-
RUN corepack enable && corepack prepare pnpm@10.6.5 --activate
3+
# Corepack resolves the pnpm version from package.json -> packageManager (single source of truth)
4+
RUN corepack enable
45

56
FROM base AS deps
67

frontend/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"private": true,
55
"packageManager": "pnpm@11.3.0",
66
"engines": {
7-
"node": "24"
7+
"node": ">=20"
88
},
99
"scripts": {
1010
"dev": "next dev",

0 commit comments

Comments
 (0)