mirror of
https://github.com/actions/setup-node.git
synced 2025-12-15 01:01:38 +08:00
feat: add support for latest alias
This commit is contained in:
2
dist/setup/index.js
vendored
2
dist/setup/index.js
vendored
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user