diff --git a/.github/workflows/examples.yaml b/.github/workflows/examples.yaml index 19125ff3..034a903b 100644 --- a/.github/workflows/examples.yaml +++ b/.github/workflows/examples.yaml @@ -18,7 +18,7 @@ jobs: - uses: actions/checkout@v3 - uses: ./.github/actions/pnpm - run: pnpm build:examples - - run: pnpx playwright install --with-deps # install browsers + - run: pnpm playwright:install --with-deps # install browsers - run: pnpm test:examples # save test report diff --git a/examples/test/playwright/README.md b/examples/test/playwright/README.md index 8d3dbcd1..e3bd7c01 100644 --- a/examples/test/playwright/README.md +++ b/examples/test/playwright/README.md @@ -11,7 +11,7 @@ Install the deps and the browsers from the root of the monorepo $ pnpm i # fetch test browsers -$ pnpx playwright install +$ pnpm playwright:install ``` Build the examples to their many dist folders diff --git a/package.json b/package.json index 826f75b5..c41c3eda 100644 --- a/package.json +++ b/package.json @@ -20,7 +20,8 @@ "typecheck": "tsc -b", "test:examples": "pnpm run --filter './examples/**' test", "build:examples": "pnpm run --filter './examples/**' --no-bail build || true", - "serve:examples": "serve examples" + "serve:examples": "serve examples", + "playwright:install": "pnpm --filter './examples/test/playwright' exec playwright install" }, "devDependencies": { "@babel/core": "^7.20.12",