mirror of
https://github.com/actions/setup-node.git
synced 2025-12-15 01:01:38 +08:00
add node aliases
This commit is contained in:
@@ -373,6 +373,10 @@ async function queryDistForMatch(
|
||||
let versions: string[] = [];
|
||||
let nodeVersions = await getVersionsFromDist();
|
||||
|
||||
if (versionSpec === 'current' || versionSpec === 'latest' || versionSpec === 'node') {
|
||||
return nodeVersions[0].version
|
||||
}
|
||||
|
||||
nodeVersions.forEach((nodeVersion: INodeVersion) => {
|
||||
// ensure this version supports your os and platform
|
||||
if (nodeVersion.files.indexOf(dataFileName) >= 0) {
|
||||
|
||||
Reference in New Issue
Block a user