From 4458744dcfc8f35f9ae2689cf61f0bd18d8a5186 Mon Sep 17 00:00:00 2001 From: robonen Date: Mon, 8 Jun 2026 16:53:25 +0700 Subject: [PATCH] ci: run playwright install in the package context playwright is a direct devDep of @robonen/primitives and @robonen/editor, not the root, so 'pnpm exec playwright' couldn't resolve the CLI in CI's strict install (Command "playwright" not found). Run it via 'pnpm --filter exec' so the package's node_modules/.bin is on PATH. --- .github/workflows/ci.yaml | 6 ++++-- .github/workflows/publish.yaml | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 835c5d1..27f7dc6 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -73,10 +73,12 @@ jobs: - name: Build run: pnpm --filter "${{ matrix.package }}..." --if-present run build - # Only the browser-mode test suites (vitest `instances: chromium`) need a browser. + # Only the browser-mode test suites (vitest `instances: chromium`) need a + # browser. playwright is a direct devDep of these packages, so run its CLI + # in the package context (--filter) — it isn't resolvable from the root. - name: Install Playwright Chromium if: matrix.package == '@robonen/primitives' || matrix.package == '@robonen/editor' - run: pnpm exec playwright install --with-deps chromium + run: pnpm --filter "${{ matrix.package }}" exec playwright install --with-deps chromium - name: Lint run: pnpm --filter "${{ matrix.package }}" --if-present run lint:check diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index 54f368f..931f9e7 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -32,7 +32,7 @@ jobs: run: pnpm install --frozen-lockfile - name: Install Playwright browser - run: pnpm exec playwright install --with-deps chromium + run: pnpm --filter "@robonen/primitives" exec playwright install --with-deps chromium - name: Build & Test run: pnpm build && pnpm test