Skip to content

Commit c42382a

Browse files
committed
ci: windows revert back to using nodejs 16.14.2
1 parent 8b0c24a commit c42382a

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

scripts/choco-install.ps1

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
$ErrorActionPreference = "Stop"
2+
13
function Save-ChocoPackage {
24
param (
35
$PackageName
@@ -21,10 +23,10 @@ if ( $null -eq $env:ChocolateyInstall ) {
2123
New-Item -Path "${PSScriptRoot}\..\tmp\chocolatey" -ItemType "directory" -ErrorAction:SilentlyContinue
2224
choco source add --name="cache" --source="${PSScriptRoot}\..\tmp\chocolatey" --priority=1
2325

24-
# Install nodejs v16.15.1 (will use cache if exists)
26+
# Install nodejs v16.14.2 (will use cache if exists)
2527
$nodejs = "nodejs.install"
26-
choco install "$nodejs" --version="16.15.1" --require-checksums -y
28+
choco install "$nodejs" --version="16.14.2" --require-checksums -y
2729
# Internalise nodejs to cache if doesn't exist
28-
if ( -not (Test-Path -Path "${PSScriptRoot}\..\tmp\chocolatey\$nodejs\$nodejs.16.15.1.nupkg" -PathType Leaf) ) {
30+
if ( -not (Test-Path -Path "${PSScriptRoot}\..\tmp\chocolatey\$nodejs\$nodejs.16.14.2.nupkg" -PathType Leaf) ) {
2931
Save-ChocoPackage -PackageName $nodejs
3032
}

0 commit comments

Comments
 (0)