Added mirror option to select alternative download source

no issue
This commit is contained in:
Daniel Lockyer 2020-04-06 17:14:56 +01:00
parent 83c9f7a7df
commit 905173b259
4 changed files with 49 additions and 32 deletions

View file

@ -13,8 +13,11 @@ async function run() {
if (!version) {
version = core.getInput('node-version');
}
let mirrorUrl = core.getInput('mirror');
if (version) {
await installer.getNode(version);
await installer.getNode(version, mirrorUrl);
}
const registryUrl: string = core.getInput('registry-url');