Skip to content

Fix: install Chrome for Puppeteer in CI and publish workflows#1

Draft
haowang1013 with Copilot wants to merge 2 commits into
directivefrom
copilot/fix-publish-job-failure
Draft

Fix: install Chrome for Puppeteer in CI and publish workflows#1
haowang1013 with Copilot wants to merge 2 commits into
directivefrom
copilot/fix-publish-job-failure

Conversation

Copilot AI commented Jul 16, 2026

Copy link
Copy Markdown

Description

npm ci blocks puppeteer's postinstall script (node install.mjs), so Chrome is never downloaded. The npm test step then fails with Could not find Chrome (ver. 149.0.7827.22) when launching the headless browser for unit tests.

Fix adds an explicit Chrome installation step after npm ci in both workflows:

  • publish.yml — added between "Install dependencies" and "Build package"
  • ci.yml — added between "Install dependencies" and the lint/test steps
- name: Install Chrome for Puppeteer
  run: npx puppeteer browsers install chrome

Copilot AI changed the title [WIP] Fix the failing GitHub Actions job "publish" Fix: install Chrome for Puppeteer in CI and publish workflows Jul 16, 2026
Copilot AI requested a review from haowang1013 July 16, 2026 08:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants