File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change 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
56FROM base AS deps
67
Original file line number Diff line number Diff line change 44 "private" : true ,
55 "packageManager" : " pnpm@11.3.0" ,
66 "engines" : {
7- "node" : " 24 "
7+ "node" : " >=20 "
88 },
99 "scripts" : {
1010 "dev" : " next dev" ,
You can’t perform that action at this time.
0 commit comments