Skip to content

Commit cc4a4ff

Browse files
committed
Use the workspace command instead
1 parent 9122f93 commit cc4a4ff

File tree

1 file changed

+2
-2
lines changed
  • .github/actions/src/playwright-cache

1 file changed

+2
-2
lines changed

.github/actions/src/playwright-cache/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ async function main() {
5757
if (!playwrightDir) {
5858
core.info('playwright directory cache not located, installing');
5959

60-
const exitCode = await exec('yarn', ['playwright', 'install', 'chromium', '--with-deps', '--shell-only']);
60+
const exitCode = await exec('yarn', ['workspaces', 'foreach', '-A', '--include', packageName, 'run', 'playwright', 'install', 'chromium', '--with-deps', '--shell-only']);
6161
if (exitCode !== 0) {
6262
core.setFailed('Failed to install playwright');
6363
return;
@@ -69,7 +69,7 @@ async function main() {
6969
core.info(`Playwright directory is ${playwrightDir}`);
7070
core.addPath(playwrightDir);
7171

72-
await exec('yarn', ['playwright', '--version']);
72+
await exec('yarn', ['workspaces', 'foreach', '-A', '--include', packageName, 'run', 'playwright', '--version']);
7373
}
7474

7575
try {

0 commit comments

Comments
 (0)