mirror of
https://github.com/actions/setup-node.git
synced 2025-12-17 05:52:35 +00:00
feat: support private mirrors (#1240)
* feat: support private mirrors * chore: change fallback message with mirrors
This commit is contained in:
parent
40337cb8f7
commit
e3ce749e20
14 changed files with 322 additions and 44 deletions
|
|
@ -36,6 +36,8 @@ export async function run() {
|
|||
if (version) {
|
||||
const token = core.getInput('token');
|
||||
const auth = !token ? undefined : `token ${token}`;
|
||||
const mirror = core.getInput('mirror');
|
||||
const mirrorToken = core.getInput('mirror-token');
|
||||
const stable =
|
||||
(core.getInput('stable') || 'true').toUpperCase() === 'TRUE';
|
||||
const checkLatest =
|
||||
|
|
@ -45,7 +47,9 @@ export async function run() {
|
|||
checkLatest,
|
||||
auth,
|
||||
stable,
|
||||
arch
|
||||
arch,
|
||||
mirror,
|
||||
mirrorToken
|
||||
};
|
||||
const nodeDistribution = getNodejsDistribution(nodejsInfo);
|
||||
await nodeDistribution.setupNodeJs();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue