Skip to content

Commit ef40113

Browse files
committed
ci(ui): point pnpm/action-setup at ui/package.json
pnpm/action-setup@v4 runs with the runner's CWD (repo root) and ignores the job-level `defaults.run.working-directory`, so the action looked for a non-existent root `package.json` and failed with 'No pnpm version is specified'. The pnpm version is already pinned in ui/package.json as packageManager=pnpm@11.1.2 — this just tells the action where to read it from.
1 parent 64f4367 commit ef40113

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,11 @@ jobs:
3535
steps:
3636
- uses: actions/checkout@v4
3737
- uses: pnpm/action-setup@v4
38+
with:
39+
# pnpm/action-setup runs with the runner CWD (repo root), not the
40+
# job-level working-directory, so we point at ui/package.json
41+
# explicitly. Version is read from its "packageManager" field.
42+
package_json_file: ui/package.json
3843
- name: Set up Node 22 LTS
3944
uses: actions/setup-node@v4
4045
with:

0 commit comments

Comments
 (0)