devops: do not download browsers during 'npm run lint' (#35474)

This commit is contained in:
Max Schmitt 2025-04-03 11:17:57 +01:00 committed by GitHub
parent 2d65457db1
commit 482e929df7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -127,7 +127,14 @@ class Workspace {
}
// Re-run npm i to make package-lock dirty.
child_process.execSync('npm i');
child_process.execSync('npm i', {
env: {
...process.env,
// Playwright would download the browsers because it has e.g. @playwright/browser-chromium or playwright-chromium
// in the workspace. We don't want to download browsers here.
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: '1',
}
});
return hasChanges;
}
}