mirror of
https://github.com/actions/setup-node.git
synced 2025-07-26 00:18:25 +02:00
Added mirror
option to select alternative download source
no issue
This commit is contained in:
parent
83c9f7a7df
commit
905173b259
4 changed files with 49 additions and 32 deletions
|
@ -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');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue