ci: use pnpm/setup for pnpm and Node setup, pin Node in package.json (#560)

* ci: use pnpm/setup for pnpm setup and install

Replace the corepack bootstrap + actions/setup-node + separate
`pnpm install` steps with a single `pnpm/setup` step, which installs
pnpm (version read from package.json `packageManager`), installs Node,
caches the pnpm store and runs `pnpm install`.

Node 24 stays pinned via `runtime: node@24`, and the GitHub Pages
workflow drops `pnpm/action-setup` in favour of the same step (it now
caches the store too).

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YAwAJ6L3Mai8eSxXf5e6SA

* chore: pin Node in package.json, bump pnpm to 11.22.0

Move the Node version out of the workflows and into package.json, so the
`pnpm/setup` steps are just `cache: true`:

- `engines.node` pins Node 24 as package metadata.
- `devEngines.runtime` is the field `pnpm/setup` actually reads to pick
  the runtime, and pnpm itself uses it to run scripts, so it is needed
  for the pin to take effect.

Bump `packageManager` from pnpm 11.11.0 to 11.22.0 (latest 11.x).

pnpm records the runtime in the lockfile (`node@runtime:24.19.0`), and
the 11.22.0 resolver writes peer suffixes differently from 11.11.0, so
pnpm-lock.yaml is regenerated. Lint, typecheck, unit tests and build all
pass on the updated lockfile.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YAwAJ6L3Mai8eSxXf5e6SA

* chore: bump .nvmrc to Node 24.19.0

The repo was already on Node 24 everywhere else (Dockerfile, workflows,
and now engines/devEngines in package.json) while .nvmrc still selected
22.19.0. Align it with the rest, matching the node@runtime:24.19.0
version pnpm resolved into the lockfile.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YAwAJ6L3Mai8eSxXf5e6SA

---------

Co-authored-by: Claude <noreply@anthropic.com>
This commit is contained in:
SebastianandClaude Opus 5 authored and GitHub committed 2026-08-16 17:29:51 +02:00
1 parent d39255ac20
commit fbc7d47fbd
10 files changed
+789 -712

No files matched your search

+3 -12
View File
@@ -12,19 +12,10 @@ jobs:
steps:
- uses: actions/checkout@v7.0.0
- run: |
echo "Before: corepack version => $(corepack --version || echo 'not installed')"
npm install -g corepack@latest
echo "After : corepack version => $(corepack --version)"
corepack enable
pnpm --version
- uses: actions/setup-node@v6.4.0
- name: Setup pnpm and install dependencies
uses: pnpm/setup@v2.0.2
with:
node-version: 24
cache: 'pnpm'
- name: Install dependencies
run: pnpm i --ignore-scripts
cache: true
- name: Run linters
run: pnpm lint
@@ -32,19 +32,10 @@ jobs:
steps:
- uses: actions/checkout@v7.0.0
- run: |
echo "Before: corepack version => $(corepack --version || echo 'not installed')"
npm install -g corepack@latest
echo "After : corepack version => $(corepack --version)"
corepack enable
pnpm --version
- uses: actions/setup-node@v6.4.0
- name: Setup pnpm and install dependencies
uses: pnpm/setup@v2.0.2
with:
node-version: 24
cache: 'pnpm'
- name: Install dependencies
run: pnpm i --ignore-scripts
cache: true
- name: Run linters
run: pnpm lint
@@ -118,20 +109,10 @@ jobs:
- name: Checkout
uses: actions/checkout@v7.0.0
- run: |
echo "Before: corepack version => $(corepack --version || echo 'not installed')"
npm install -g corepack@latest
echo "After : corepack version => $(corepack --version)"
corepack enable
pnpm --version
- uses: actions/setup-node@v6.4.0
- name: Setup pnpm and install dependencies
uses: pnpm/setup@v2.0.2
with:
node-version: 24
cache: 'pnpm'
- name: Install dependencies
run: pnpm i --ignore-scripts
cache: true
- name: Build the app
run: pnpm build
@@ -14,19 +14,10 @@ jobs:
steps:
- uses: actions/checkout@v7.0.0
- run: |
echo "Before: corepack version => $(corepack --version || echo 'not installed')"
npm install -g corepack@latest
echo "After : corepack version => $(corepack --version)"
corepack enable
pnpm --version
- uses: actions/setup-node@v6.4.0
- name: Setup pnpm and install dependencies
uses: pnpm/setup@v2.0.2
with:
node-version: 24
cache: 'pnpm'
- name: Install dependencies
run: pnpm i --ignore-scripts
cache: true
- name: Run linters
run: pnpm lint
@@ -14,19 +14,10 @@ jobs:
steps:
- uses: actions/checkout@v7.0.0
- run: |
echo "Before: corepack version => $(corepack --version || echo 'not installed')"
npm install -g corepack@latest
echo "After : corepack version => $(corepack --version)"
corepack enable
pnpm --version
- uses: actions/setup-node@v6.4.0
- name: Setup pnpm and install dependencies
uses: pnpm/setup@v2.0.2
with:
node-version: 24
cache: 'pnpm'
- name: Install dependencies
run: pnpm i --ignore-scripts
cache: true
- name: Run linters
run: pnpm lint
+3 -13
View File
@@ -14,25 +14,15 @@ jobs:
steps:
- uses: actions/checkout@v7.0.0
- run: |
echo "Before: corepack version => $(corepack --version || echo 'not installed')"
npm install -g corepack@latest
echo "After : corepack version => $(corepack --version)"
corepack enable
pnpm --version
- uses: actions/setup-node@v6.4.0
- name: Setup pnpm and install dependencies
uses: pnpm/setup@v2.0.2
with:
node-version: 24
cache: 'pnpm'
cache: true
- name: Get Playwright version
id: playwright-version
run: echo "PLAYWRIGHT_VERSION=$(jq -r .dependencies.playwright package.json)" >> "$GITHUB_OUTPUT"
- name: Install dependencies
run: pnpm install --ignore-scripts
- name: Build app
run: pnpm build
@@ -34,16 +34,10 @@ jobs:
- name: Checkout
uses: actions/checkout@v7.0.0
- name: Install Node.js
uses: actions/setup-node@v6.4.0
- name: Setup pnpm and install dependencies
uses: pnpm/setup@v2.0.2
with:
node-version: 24
- uses: pnpm/action-setup@v6.0.9
name: Install pnpm
id: pnpm-install
with:
run_install: true
cache: true
- name: Build
run: |
+3 -13
View File
@@ -87,20 +87,10 @@ jobs:
- name: Checkout
uses: actions/checkout@v7.0.0
- run: |
echo "Before: corepack version => $(corepack --version || echo 'not installed')"
npm install -g corepack@latest
echo "After : corepack version => $(corepack --version)"
corepack enable
pnpm --version
- uses: actions/setup-node@v6.4.0
- name: Setup pnpm and install dependencies
uses: pnpm/setup@v2.0.2
with:
node-version: 24
cache: 'pnpm'
- name: Install dependencies
run: pnpm i --ignore-scripts
cache: true
- name: Build the app
run: pnpm build
+1 -1
View File
@@ -1 +1 @@
22.19.0
24.19.0
+11 -1
View File
@@ -480,7 +480,17 @@
"workbox-window": "^7.4.1",
"zx": "^8.8.5"
},
"packageManager": "pnpm@11.11.0+sha512.4463f65fd80ed80d69bc1d4bf163ee94f605c7380fc318bb5b2ebe15f8cd12d49c51a4d59e951b401e764d3b6ca751cbf51bc50ed7001a6bcb4935e684c34882",
"packageManager": "pnpm@11.22.0+sha512.1ff870c4c6133dfd88fb2afc46dd13d47f09c9794b438c6fdb47ca98caf3bc16381ee0be93a091b8e3824cf01f889f46d7d9e20910fb0be1ab0fb5baa80dd621",
"engines": {
"node": "24.x"
},
"devEngines": {
"runtime": {
"name": "node",
"version": "24.x",
"onFail": "download"
}
},
"scarfSettings": {
"enabled": false
}
+753 -614
View File
File diff suppressed because it is too large. Load diff