feat: add support for latest alias

This commit is contained in:
Divlo
2021-07-01 14:54:34 +02:00
parent d0b685ffa8
commit 0418ee25e8
3 changed files with 16 additions and 2 deletions

2
dist/setup/index.js vendored
View File

@@ -65299,7 +65299,7 @@ function queryDistForMatch(versionSpec, arch = os.arch()) {
}
let versions = [];
let nodeVersions = yield module.exports.getVersionsFromDist();
if (versionSpec === 'current') {
if (versionSpec === 'current' || versionSpec === 'latest') {
return nodeVersions[0].version;
}
nodeVersions.forEach((nodeVersion) => {