mirror of
https://github.com/actions/setup-node.git
synced 2025-06-29 22:23:47 +00:00
checklatest
This commit is contained in:
parent
a7b5311f2b
commit
630895f248
2 changed files with 8 additions and 0 deletions
|
@ -315,12 +315,17 @@ export default class OfficialBuilds extends BaseDistribution {
|
|||
|
||||
protected async downloadFromMirrorURL() {
|
||||
const nodeJsVersions = await this.getNodeJsVersions();
|
||||
core.info('versions from nodeJSVersions'+nodeJsVersions);
|
||||
const versions = this.filterVersions(nodeJsVersions);
|
||||
core.info('versions'+versions);
|
||||
|
||||
const evaluatedVersion = this.evaluateVersions(versions);
|
||||
|
||||
if (this.nodeInfo.checkLatest) {
|
||||
const evaluatedVersion = await this.findVersionInDist(nodeJsVersions);
|
||||
this.nodeInfo.versionSpec = evaluatedVersion;
|
||||
core.info('versionSpec'+this.nodeInfo.versionSpec);
|
||||
|
||||
}
|
||||
|
||||
if (!evaluatedVersion) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue