Skip to content

Commit 628cc63

Browse files
pRizzclaude
andcommitted
fix: install Playwright browsers from lockfile-pinned version in CI
bunx (even with --bun) always downloads a fresh playwright package from npm, ignoring node_modules/.bin/. This caused a version mismatch: browsers were downloaded for the latest Playwright (chromium v1208) but @playwright/test@1.57.0 from the lockfile expected chromium v1200. Switch to npx which checks node_modules/.bin/ first and invokes the locally-installed playwright binary, respecting the lockfile pin. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 8c0ab11 commit 628cc63

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

.github/workflows/ci.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -341,8 +341,10 @@ jobs:
341341
restore-keys: ${{ runner.os }}-playwright-
342342

343343
- name: Install Playwright browsers
344-
working-directory: packages/opencode/packages/app
345-
run: bunx playwright install --with-deps
344+
working-directory: packages/opencode
345+
run: |
346+
bun install --frozen-lockfile --ignore-scripts
347+
npx playwright install --with-deps
346348
env:
347349
PLAYWRIGHT_BROWSERS_PATH: ${{ github.workspace }}/.cache/ms-playwright
348350

0 commit comments

Comments
 (0)