Skip to content

Commit e74fc9b

Browse files
committed
fix: use npx to ensure we use the latest local version and prevent conflicts
1 parent 2b84471 commit e74fc9b

File tree

3 files changed

+7
-10
lines changed

3 files changed

+7
-10
lines changed

dist/index.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -89681,10 +89681,9 @@ async function run() {
8968189681
logger_1.logger.info('🎭 Installing Playwright browsers...');
8968289682
try {
8968389683
const browsersToInstall = browsers || 'chromium';
89684-
// First, install playwright globally to ensure CLI is available
89685-
await exec.exec('npm', ['install', '-g', 'playwright']);
89686-
// Then install the browsers
89687-
await exec.exec('playwright', [
89684+
// Use npx to ensure we use the local Playwright version
89685+
await exec.exec('npx', [
89686+
'playwright',
8968889687
'install',
8968989688
'--with-deps',
8969089689
...browsersToInstall.split(',').map((b) => b.trim()),

dist/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/index.ts

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -72,11 +72,9 @@ export async function run(): Promise<void> {
7272
logger.info('🎭 Installing Playwright browsers...');
7373
try {
7474
const browsersToInstall = browsers || 'chromium';
75-
// First, install playwright globally to ensure CLI is available
76-
await exec.exec('npm', ['install', '-g', 'playwright']);
77-
78-
// Then install the browsers
79-
await exec.exec('playwright', [
75+
// Use npx to ensure we use the local Playwright version
76+
await exec.exec('npx', [
77+
'playwright',
8078
'install',
8179
'--with-deps',
8280
...browsersToInstall.split(',').map((b) => b.trim()),

0 commit comments

Comments
 (0)