mirror of
https://github.com/actions/setup-node.git
synced 2026-07-07 07:35:36 +00:00
Compare commits
2 Commits
9feef93469
...
29b24b6a14
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
29b24b6a14 | ||
|
|
3859bef1b6 |
4
dist/setup/index.js
vendored
4
dist/setup/index.js
vendored
@ -97519,7 +97519,7 @@ class OfficialBuilds extends base_distribution_1.default {
|
|||||||
}
|
}
|
||||||
setupNodeJs() {
|
setupNodeJs() {
|
||||||
return __awaiter(this, void 0, void 0, function* () {
|
return __awaiter(this, void 0, void 0, function* () {
|
||||||
var _a, _b, _c;
|
var _a, _b;
|
||||||
let manifest;
|
let manifest;
|
||||||
let nodeJsVersions;
|
let nodeJsVersions;
|
||||||
const osArch = this.translateArchToDistUrl(this.nodeInfo.arch);
|
const osArch = this.translateArchToDistUrl(this.nodeInfo.arch);
|
||||||
@ -97577,7 +97577,7 @@ class OfficialBuilds extends base_distribution_1.default {
|
|||||||
core.info(err.message);
|
core.info(err.message);
|
||||||
}
|
}
|
||||||
core.debug((_b = err.stack) !== null && _b !== void 0 ? _b : 'empty stack');
|
core.debug((_b = err.stack) !== null && _b !== void 0 ? _b : 'empty stack');
|
||||||
core.info(`Falling back to download directly from ${(_c = this.nodeInfo.mirror) !== null && _c !== void 0 ? _c : 'Node'}`);
|
core.info('Falling back to download directly from Node');
|
||||||
}
|
}
|
||||||
if (!toolPath) {
|
if (!toolPath) {
|
||||||
toolPath = yield this.downloadDirectlyFromNode();
|
toolPath = yield this.downloadDirectlyFromNode();
|
||||||
|
|||||||
@ -114,11 +114,7 @@ export default class OfficialBuilds extends BaseDistribution {
|
|||||||
core.info((err as Error).message);
|
core.info((err as Error).message);
|
||||||
}
|
}
|
||||||
core.debug((err as Error).stack ?? 'empty stack');
|
core.debug((err as Error).stack ?? 'empty stack');
|
||||||
core.info(
|
core.info('Falling back to download directly from Node');
|
||||||
`Falling back to download directly from ${
|
|
||||||
this.nodeInfo.mirror ?? 'Node'
|
|
||||||
}`
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!toolPath) {
|
if (!toolPath) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user