Skip to content

Commit 5ce452e

Browse files
committed
ci: fix windows builds due to choco
1 parent df30d74 commit 5ce452e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

scripts/choco-install.ps1

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
$ErrorActionPreference = "Stop"
2+
13
function Save-ChocoPackage {
24
param (
35
$PackageName
@@ -22,7 +24,7 @@ New-Item -Path "${PSScriptRoot}\..\tmp\chocolatey" -ItemType "directory" -ErrorA
2224
choco source add --name="cache" --source="${PSScriptRoot}\..\tmp\chocolatey" --priority=1
2325

2426
# Install nodejs v20.5.1 (will use cache if exists)
25-
$nodejs = "nodejs.install"
27+
$nodejs = "nodejs"
2628
choco install "$nodejs" --version="20.5.1" --require-checksums -y
2729
# Internalise nodejs to cache if doesn't exist
2830
if ( -not (Test-Path -Path "${PSScriptRoot}\..\tmp\chocolatey\$nodejs\$nodejs.20.5.1.nupkg" -PathType Leaf) ) {

0 commit comments

Comments
 (0)