mirror of
https://github.com/actions/setup-node.git
synced 2026-07-06 23:25:36 +00:00
Compare commits
2 Commits
29b24b6a14
...
eb8190bb08
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
eb8190bb08 | ||
|
|
4731556a4c |
6
dist/setup/index.js
vendored
6
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;
|
var _a;
|
||||||
let manifest;
|
let manifest;
|
||||||
let nodeJsVersions;
|
let nodeJsVersions;
|
||||||
const osArch = this.translateArchToDistUrl(this.nodeInfo.arch);
|
const osArch = this.translateArchToDistUrl(this.nodeInfo.arch);
|
||||||
@ -97564,7 +97564,7 @@ class OfficialBuilds extends base_distribution_1.default {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
core.info(`Not found in manifest. Falling back to download directly from ${(_a = this.nodeInfo.mirror) !== null && _a !== void 0 ? _a : 'Node'}`);
|
core.info(`Not found in manifest. Falling back to download directly from ${this.nodeInfo.mirror || 'Node'}`);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
catch (err) {
|
catch (err) {
|
||||||
@ -97576,7 +97576,7 @@ class OfficialBuilds extends base_distribution_1.default {
|
|||||||
else {
|
else {
|
||||||
core.info(err.message);
|
core.info(err.message);
|
||||||
}
|
}
|
||||||
core.debug((_b = err.stack) !== null && _b !== void 0 ? _b : 'empty stack');
|
core.debug((_a = err.stack) !== null && _a !== void 0 ? _a : 'empty stack');
|
||||||
core.info('Falling back to download directly from Node');
|
core.info('Falling back to download directly from Node');
|
||||||
}
|
}
|
||||||
if (!toolPath) {
|
if (!toolPath) {
|
||||||
|
|||||||
@ -97,7 +97,7 @@ export default class OfficialBuilds extends BaseDistribution {
|
|||||||
} else {
|
} else {
|
||||||
core.info(
|
core.info(
|
||||||
`Not found in manifest. Falling back to download directly from ${
|
`Not found in manifest. Falling back to download directly from ${
|
||||||
this.nodeInfo.mirror ?? 'Node'
|
this.nodeInfo.mirror || 'Node'
|
||||||
}`
|
}`
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user