Skip to content

Commit 294728c

Browse files
don't use Start-Process for npm/npx
1 parent 621eb1f commit 294728c

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

.github/workflows/scripts/windows/setup.ps1

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,11 @@
33

44
# Download the VSIX archived upstream
55
npm ci --ignore-scripts
6-
$Process = Start-Process npx "tsx scripts/download_vsix.ts" -Wait -PassThru -NoNewWindow
7-
if ($Process.ExitCode -eq 0) {
8-
Write-Host 'SUCCESS'
9-
} else {
10-
Write-Host ('FAILED ({0})' -f $Process.ExitCode)
11-
exit 1
6+
if ($LastExitCode -ne 0) {
7+
exit $LastExitCode
8+
}
9+
10+
npx tsx scripts/download_vsix.tsx
11+
if ($LastExitCode -ne 0) {
12+
exit $LastExitCode
1213
}

0 commit comments

Comments
 (0)