Skip to content

Commit 771d2c6

Browse files
committed
chore: win fix
1 parent 07ea34a commit 771d2c6

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

.github/workflows/run-tests.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,17 @@ jobs:
4040
- name: Install dependencies
4141
shell: bash
4242
run: npm ci
43+
env:
44+
PUPPETEER_SKIP_DOWNLOAD: true
45+
46+
- name: Patch
47+
if: ${{ matrix.os == 'windows-latest' }}
48+
shell: bash
49+
run: sed -i "s|await execFileAsync('tar.exe'.*);|await execFileAsync('tar.exe', ['-xf', path.relative(process.cwd(), archivePath), '-C', path.relative(process.cwd(), folderPath)]);|g" ./node_modules/@puppeteer/browsers/lib/fileUtil.js
50+
51+
- name: Install browser
52+
shell: bash
53+
run: npx puppeteer browsers install chrome
4354

4455
- name: Build
4556
run: npm run bundle

0 commit comments

Comments
 (0)