Skip to content

Commit

Permalink
Add nodejs toolcache for windows (#840)
Browse files Browse the repository at this point in the history
* add installation of nodejs

Co-authored-by: Dmitry Shibanov <[email protected]>
  • Loading branch information
dmitry-shibanov and Dmitry Shibanov authored May 8, 2020
1 parent 48f3964 commit 68fdb18
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 1 deletion.
5 changes: 4 additions & 1 deletion images/win/scripts/Installers/Validate-Toolset.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,10 @@ $ErrorActionPreference = "Stop"
Import-Module -Name ImageHelpers -Force

# Define executables for cached tools
$toolsExecutables = @{ Python = @("python.exe", "Scripts\pip.exe") }
$toolsExecutables = @{
Python = @("python.exe", "Scripts\pip.exe");
node = @("node.exe", "npm")
}

# Get toolcache content from toolset
$tools = Get-ToolsetContent | Select-Object -ExpandProperty toolcache
Expand Down
12 changes: 12 additions & 0 deletions images/win/toolset-2016.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,18 @@
"3.7.*",
"3.8.*"
]
},
{
"name": "node",
"url" : "https://raw.githubusercontent.com/actions/node-versions/master/versions-manifest.json",
"arch": "x64",
"platform" : "win32",
"versions": [
"8.*",
"10.*",
"12.*",
"14.*"
]
}
]
}
12 changes: 12 additions & 0 deletions images/win/toolset-2019.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,18 @@
"3.7.*",
"3.8.*"
]
},
{
"name": "node",
"url" : "https://raw.githubusercontent.com/actions/node-versions/master/versions-manifest.json",
"arch": "x64",
"platform" : "win32",
"versions": [
"8.*",
"10.*",
"12.*",
"14.*"
]
}
]
}

0 comments on commit 68fdb18

Please sign in to comment.