Skip to content

Commit 0129781

Browse files
B2JK-Industryclaude
andcommitted
fix(ci): unblock CI — declare workspace root + bump pnpm to v10
Last 5 pushes (G-29..G-37) reported red on GitHub: ERROR packages field missing or empty For help, run: pnpm help store Two compounding causes: 1. `pnpm-workspace.yaml` listed `ignoredBuiltDependencies` only, no `packages` field. pnpm 10+ treats the file as a workspace marker and requires `packages` even for single-package roots. Without it `actions/setup-node@v4`'s `cache: pnpm` setup runs `pnpm store path --silent` which now refuses to enumerate the store before a workspace is resolved → setup fails before `pnpm install` even runs. 2. The CI matrix pinned pnpm v9 but my recent `pnpm.onlyBuiltDependencies` field in package.json (4a50784) is a pnpm 10+ schema. v9 either ignores it (silent drift) or warns; either way the local + CI environments diverge. Bumped both `pnpm/action-setup@v3 with: version` slots from 9 → 10 so the runtime matches what we actually develop against. Verified locally: - pnpm install --frozen-lockfile → success (Done in 13.9s, pnpm v10.33.0) This commit unblocks the prior 5 CI runs by retroactively making the workspace declaration valid; pushing it triggers a fresh CI that should land green. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 826fe59 commit 0129781

2 files changed

Lines changed: 9 additions & 2 deletions

File tree

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
- uses: actions/checkout@v4
2121
- uses: pnpm/action-setup@v3
2222
with:
23-
version: 9
23+
version: 10
2424
- uses: actions/setup-node@v4
2525
with:
2626
node-version: 22
@@ -51,7 +51,7 @@ jobs:
5151
- uses: actions/checkout@v4
5252
- uses: pnpm/action-setup@v3
5353
with:
54-
version: 9
54+
version: 10
5555
- uses: actions/setup-node@v4
5656
with:
5757
node-version: 22

pnpm-workspace.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
# pnpm 10+ treats any pnpm-workspace.yaml as a workspace marker and
2+
# requires `packages` even when the repo is a single-package root.
3+
# Listing "." declares the root itself as the only workspace member,
4+
# which keeps `pnpm install` happy without splitting the repo.
5+
packages:
6+
- "."
7+
18
ignoredBuiltDependencies:
29
- sharp
310
- unrs-resolver

0 commit comments

Comments
 (0)