fix(ci): #2120 — pnpm install must run from v3/ (workspace root)

My prior fix (2d2091fe7) ran `pnpm install` at repo root, but the
pnpm-workspace.yaml lives in v3/, not at the root. Result: no
node_modules under v3/@claude-flow/cli, tsc errored on missing
@types/node, build never produced dist.

Mirror the working pattern used elsewhere in this workflow:
`working-directory: v3` + `pnpm install` + `pnpm --filter
@claude-flow/cli build`. Keep the root `npm install` for sql.js
which the smoke fixture imports from the repo root.

Co-Authored-By: RuFlo <ruflo-bot@users.noreply.github.com>
This commit is contained in:
ruvandRuFlo committed 2026-05-24 13:59:00 -04:00
1 parent cfffa8d85a
commit cec3cef488
1 file changed
+12 -4
+12 -4
View File
@@ -1100,15 +1100,23 @@ jobs:
with:
version: 8
- name: Install workspace deps (pnpm — handles `workspace:*` protocol)
- name: Install root deps (sql.js for the smoke fixture)
# The smoke creates a `.swarm/memory.db` fixture using `sql.js`
# imported from the repo root. Root has no `workspace:*` deps,
# so plain npm works here.
run: npm install --legacy-peer-deps --no-audit --no-fund --ignore-scripts
- name: Install workspace deps (pnpm — `workspace:*` protocol lives in v3/)
# `cd v3/@claude-flow/cli && npm install` errors with
# `EUNSUPPORTEDPROTOCOL: Unsupported URL Type "workspace:"` because
# npm doesn't understand the workspace protocol used in our
# monorepo. pnpm does. Root install is sufficient — it populates
# `v3/@claude-flow/cli/node_modules` via the workspace topology.
# npm doesn't understand workspace:*. The pnpm workspace root is
# `v3/pnpm-workspace.yaml`, not the repo root — so we install from
# inside v3/.
working-directory: v3
run: pnpm install --frozen-lockfile=false --ignore-scripts
- name: Build CLI dist
working-directory: v3
run: pnpm --filter @claude-flow/cli build
- name: Run memory stats legacy-DB smoke