mirror of
https://github.com/actions/setup-node.git
synced 2025-01-31 20:37:14 +07:00
checklatest
This commit is contained in:
parent
a7b5311f2b
commit
630895f248
3
dist/setup/index.js
vendored
3
dist/setup/index.js
vendored
@ -100666,11 +100666,14 @@ class OfficialBuilds extends base_distribution_1.default {
|
|||||||
downloadFromMirrorURL() {
|
downloadFromMirrorURL() {
|
||||||
return __awaiter(this, void 0, void 0, function* () {
|
return __awaiter(this, void 0, void 0, function* () {
|
||||||
const nodeJsVersions = yield this.getNodeJsVersions();
|
const nodeJsVersions = yield this.getNodeJsVersions();
|
||||||
|
core.info('versions from nodeJSVersions' + nodeJsVersions);
|
||||||
const versions = this.filterVersions(nodeJsVersions);
|
const versions = this.filterVersions(nodeJsVersions);
|
||||||
|
core.info('versions' + versions);
|
||||||
const evaluatedVersion = this.evaluateVersions(versions);
|
const evaluatedVersion = this.evaluateVersions(versions);
|
||||||
if (this.nodeInfo.checkLatest) {
|
if (this.nodeInfo.checkLatest) {
|
||||||
const evaluatedVersion = yield this.findVersionInDist(nodeJsVersions);
|
const evaluatedVersion = yield this.findVersionInDist(nodeJsVersions);
|
||||||
this.nodeInfo.versionSpec = evaluatedVersion;
|
this.nodeInfo.versionSpec = evaluatedVersion;
|
||||||
|
core.info('versionSpec' + this.nodeInfo.versionSpec);
|
||||||
}
|
}
|
||||||
if (!evaluatedVersion) {
|
if (!evaluatedVersion) {
|
||||||
throw new Error(`Unable to find Node version '${this.nodeInfo.versionSpec}' for platform ${this.osPlat} and architecture ${this.nodeInfo.arch}.`);
|
throw new Error(`Unable to find Node version '${this.nodeInfo.versionSpec}' for platform ${this.osPlat} and architecture ${this.nodeInfo.arch}.`);
|
||||||
|
@ -315,12 +315,17 @@ export default class OfficialBuilds extends BaseDistribution {
|
|||||||
|
|
||||||
protected async downloadFromMirrorURL() {
|
protected async downloadFromMirrorURL() {
|
||||||
const nodeJsVersions = await this.getNodeJsVersions();
|
const nodeJsVersions = await this.getNodeJsVersions();
|
||||||
|
core.info('versions from nodeJSVersions'+nodeJsVersions);
|
||||||
const versions = this.filterVersions(nodeJsVersions);
|
const versions = this.filterVersions(nodeJsVersions);
|
||||||
|
core.info('versions'+versions);
|
||||||
|
|
||||||
const evaluatedVersion = this.evaluateVersions(versions);
|
const evaluatedVersion = this.evaluateVersions(versions);
|
||||||
|
|
||||||
if (this.nodeInfo.checkLatest) {
|
if (this.nodeInfo.checkLatest) {
|
||||||
const evaluatedVersion = await this.findVersionInDist(nodeJsVersions);
|
const evaluatedVersion = await this.findVersionInDist(nodeJsVersions);
|
||||||
this.nodeInfo.versionSpec = evaluatedVersion;
|
this.nodeInfo.versionSpec = evaluatedVersion;
|
||||||
|
core.info('versionSpec'+this.nodeInfo.versionSpec);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!evaluatedVersion) {
|
if (!evaluatedVersion) {
|
||||||
|
Loading…
Reference in New Issue
Block a user