fix(ci): declare packageManager so pnpm/action-setup picks the right version
CI / scan (pull_request) Failing after 6m11s
CI / check (pull_request) Successful in 10m15s
CI / commits (pull_request) Successful in 10m18s
CI / perf (pull_request) Failing after 5m14s
CI / a11y (pull_request) Successful in 9m46s

pnpm/action-setup@v3 needs to know which pnpm version to install,
either via a `version:` input in the workflow YAML or via the
`packageManager` field of package.json. Neither was set, so the
action's self-installer aborts with `No pnpm version is specified`,
breaking every CI job that calls it (check, scan, perf, commits).

Add `"packageManager": "pnpm@10.33.2"` to package.json — single
source of truth for the workspace, also picked up by `corepack` so
local dev gets the same version automatically. Workflow YAMLs stay
untouched (the action reads packageManager directly).

Pinned to the exact 10.33.2 that the workspace was bootstrapped with.
Future bumps go through a `chore(deps):` PR and update this field
explicitly so CI and local dev stay in lockstep.
This commit is contained in:
Julien Gautier
2026-05-04 11:56:24 +02:00
parent 68e177615a
commit c104adb226
+1
View File
@@ -2,6 +2,7 @@
"name": "apf-portal", "name": "apf-portal",
"version": "0.0.0", "version": "0.0.0",
"license": "MIT", "license": "MIT",
"packageManager": "pnpm@10.33.2",
"scripts": { "scripts": {
"prepare": "husky", "prepare": "husky",
"ci:check": "pnpm exec nx affected -t format:check lint test build", "ci:check": "pnpm exec nx affected -t format:check lint test build",