Add nodejs toolcache for windows (#840)

* add installation of nodejs

Co-authored-by: Dmitry Shibanov <v-dmshib@microsoft.com>
This commit is contained in:
Dmitry Shibanov
2020-05-08 11:14:27 +00:00
committed by GitHub
parent 48f3964fe6
commit 68fdb181e5
3 changed files with 28 additions and 1 deletions

View File

@@ -62,7 +62,10 @@ $ErrorActionPreference = "Stop"
Import-Module -Name ImageHelpers -Force Import-Module -Name ImageHelpers -Force
# Define executables for cached tools # 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 # Get toolcache content from toolset
$tools = Get-ToolsetContent | Select-Object -ExpandProperty toolcache $tools = Get-ToolsetContent | Select-Object -ExpandProperty toolcache

View File

@@ -26,6 +26,18 @@
"3.7.*", "3.7.*",
"3.8.*" "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.*"
]
} }
] ]
} }

View File

@@ -26,6 +26,18 @@
"3.7.*", "3.7.*",
"3.8.*" "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.*"
]
} }
] ]
} }