Skip to content

Commit

Permalink
ci: mac and windows to use node 18.15
Browse files Browse the repository at this point in the history
  • Loading branch information
CMCDragonkai committed Oct 17, 2023
1 parent 331b9f8 commit ee1de51
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions scripts/brew-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@ export HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK=1
export HOMEBREW_NO_AUTO_UPDATE=1
export HOMEBREW_NO_ANALYTICS=1

brew reinstall node@20
brew link --overwrite node@20
brew reinstall node@18
brew link --overwrite node@18
8 changes: 4 additions & 4 deletions scripts/choco-install.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ if ( $null -eq $env:ChocolateyInstall ) {
New-Item -Path "${PSScriptRoot}\..\tmp\chocolatey" -ItemType "directory" -ErrorAction:SilentlyContinue
choco source add --name="cache" --source="${PSScriptRoot}\..\tmp\chocolatey" --priority=1

# Install nodejs v20.5.1 (will use cache if exists)
$nodejs = "nodejs"
choco install "$nodejs" --version="20.5.1" --require-checksums -y
# Install nodejs v18.15.0 (will use cache if exists)
$nodejs = "nodejs.install"
choco install "$nodejs" --version="18.15.0" --require-checksums -y
# Internalise nodejs to cache if doesn't exist
if ( -not (Test-Path -Path "${PSScriptRoot}\..\tmp\chocolatey\$nodejs\$nodejs.20.5.1.nupkg" -PathType Leaf) ) {
if ( -not (Test-Path -Path "${PSScriptRoot}\..\tmp\chocolatey\$nodejs\$nodejs.18.15.0.nupkg" -PathType Leaf) ) {
Save-ChocoPackage -PackageName $nodejs
}

0 comments on commit ee1de51

Please sign in to comment.