Skip to content

Commit c9507f7

Browse files
committed
ci: explicitly install Chrome for puppeteer (pnpm v9 skips postinstall)
puppeteer 23 downloads Chrome via its postinstall script, but pnpm v9 build-script approval skips it, causing "Could not find Chrome" in CI. Add an explicit "pnpm exec puppeteer browsers install chrome" step before running the cross-check.
1 parent 5282754 commit c9507f7

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

.github/workflows/chrome-cross-check.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,8 @@ jobs:
2424
- name: Install puppeteer
2525
working-directory: scripts
2626
run: pnpm install --frozen-lockfile
27+
- name: Install Chrome for puppeteer
28+
working-directory: scripts
29+
run: pnpm exec puppeteer browsers install chrome
2730
- name: Run Chrome cross-check
2831
run: node scripts/chrome-cross-check.mjs

0 commit comments

Comments
 (0)