Skip to content

Commit c294a2b

Browse files
committed
fix(ci): use pnpm exec for playwright install
npx doesn't reliably find binaries with pnpm. Since playwright is already a devDependency, use pnpm exec to run the installed version.
1 parent 64f4cbf commit c294a2b

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

.github/workflows/ci.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,7 @@ jobs:
4040
run: pnpm install
4141
- name: Print put node & npm version
4242
run: node --version && pnpm --version
43-
# Pin the version of Playwright to match package.json to avoid installing a newer version which may expect different binaries
4443
- name: Install chromium
45-
run: npx playwright@1.50.1 install chromium
44+
run: pnpm exec playwright install chromium
4645
- name: Run unit test
4746
run: pnpm run test

0 commit comments

Comments
 (0)