Skip to content

Commit b71fb2a

Browse files
kevinccbsgclaude
andcommitted
ci: clear puppeteer cache before installing Chrome
puppeteer's postinstall (triggered while npx prepares the twd-cli env) leaves a partial Chrome folder without the binary, which makes `puppeteer browsers install chrome` fail. Same fix as twd-relay's e2e workflow: wipe ~/.cache/puppeteer right before the install. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent e6f7d9a commit b71fb2a

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

.github/workflows/ci.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,11 @@ jobs:
3838
# The shared action installs Chrome via puppeteer@latest, which can
3939
# drift from twd-cli's pinned puppeteer (e.g. puppeteer 25 installs
4040
# Chrome 149 while twd-cli needs 148).
41+
# puppeteer's postinstall (run while npx prepares the twd-cli env)
42+
# leaves a partial Chrome folder that makes the install fail, so
43+
# clear the cache right before installing.
4144
- name: Install Chrome for twd-cli
42-
run: npx -y -p twd-cli -c 'puppeteer browsers install chrome'
45+
run: npx -y -p twd-cli -c 'rm -rf ~/.cache/puppeteer && puppeteer browsers install chrome'
4346

4447
- name: Run TWD tests
4548
uses: BRIKEV/twd-cli/.github/actions/run@main

0 commit comments

Comments
 (0)