Skip to content

Commit 9db6202

Browse files
authored
[Infrastructure] Avoid downloading browsers during source build (#54036)
* Set PUPPETEER_SKIP_DOWNLOAD=1 to avoid downloading the browsers during source build
1 parent 4ea9f39 commit 9db6202

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

eng/SourceBuild.props

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,9 +107,15 @@
107107
Command="npm --version"
108108
WorkingDirectory="$(InnerSourceBuildRepoRoot)" />
109109

110+
<PropertyGroup>
111+
<!-- Disable installing puppeteer browsers when running in source build -->
112+
<_AdditionalEnvironmentVariable Condition="$(ArcadeBuildFromSource) == 'true'">PUPPETEER_SKIP_DOWNLOAD=1</_AdditionalEnvironmentVariable>
113+
</PropertyGroup>
114+
110115
<Exec
111116
Command="npm ci --offline"
112-
WorkingDirectory="$(InnerSourceBuildRepoRoot)" />
117+
WorkingDirectory="$(InnerSourceBuildRepoRoot)"
118+
EnvironmentVariables="$(_AdditionalEnvironmentVariable)" />
113119

114120
</Target>
115121

0 commit comments

Comments
 (0)