From 9a03ebd9cc165b5097a085f36b4bf1479b417142 Mon Sep 17 00:00:00 2001 From: panticmilos Date: Thu, 19 May 2022 17:06:51 +0200 Subject: [PATCH] run build --- dist/setup/index.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/dist/setup/index.js b/dist/setup/index.js index 23e5d16c..6740015e 100644 --- a/dist/setup/index.js +++ b/dist/setup/index.js @@ -62591,6 +62591,12 @@ function queryDistForMatch(versionSpec, arch = os.arch()) { } let versions = []; let nodeVersions = yield getVersionsFromDist(); + if (versionSpec === 'current' || + versionSpec === 'latest' || + versionSpec === 'node') { + core.info(`getting latest node version...`); + return nodeVersions[0].version; + } nodeVersions.forEach((nodeVersion) => { // ensure this version supports your os and platform if (nodeVersion.files.indexOf(dataFileName) >= 0) {