Skip to content

Commit

Permalink
Windows AMI add node16/18 and cypress (#291)
Browse files Browse the repository at this point in the history
* Update windows ami to have node 16 and 18 versions

Signed-off-by: Peter Zhu <[email protected]>

* Add cypress installation

Signed-off-by: Peter Zhu <[email protected]>

---------

Signed-off-by: Peter Zhu <[email protected]>
  • Loading branch information
peterzhuamazon authored May 25, 2023
1 parent ddc518a commit e55875d
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion packer/scripts/windows/scoop-install-commons.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ yq --version
# While Volta is using a fixed location and switch binary version automatically for the Windows Agent
scoop install volta
volta --version
$nodeVersionList = "10.24.1","14.19.1","14.20.0", "14.20.1", "14.21.3"
$nodeVersionList = "10.24.1","14.19.1","14.20.0", "14.20.1", "14.21.3", "16.20.0", "18.16.0"
Foreach ($nodeVersion in $nodeVersionList)
{
$nodeVersion
Expand All @@ -141,6 +141,13 @@ $yarnVersion = (curl.exe -s -o- $JSON_BASE | yq.exe -r '.engines.yarn')
$yarnVersion
volta install yarn@$yarnVersion
yarn --version
$cypressVersionList = "5.6.0", "9.5.4", "12.13.0"
Foreach ($cypressVersion in $cypressVersionList)
{
$cypressVersion
volta install "cypress@$cypressVersion"
cypress --version
}
$userenv2 = [System.Environment]::GetEnvironmentVariable("Path", [System.EnvironmentVariableTarget]::User)
$nodePathFixed = "C:\\Users\\Administrator\\scoop\\persist\\volta\\appdata\\bin"
[System.Environment]::SetEnvironmentVariable("PATH", $userenv2 + ";$nodePathFixed", [System.EnvironmentVariableTarget]::User)
Expand Down

0 comments on commit e55875d

Please sign in to comment.