mirror of
https://github.com/actions/setup-node.git
synced 2025-12-15 01:01:38 +08:00
apply prettier
This commit is contained in:
@@ -374,7 +374,11 @@ async function queryDistForMatch(
|
||||
let versions: string[] = [];
|
||||
let nodeVersions = await installer.getVersionsFromDist();
|
||||
|
||||
if (versionSpec === 'current' || versionSpec === 'latest' || versionSpec === 'node') {
|
||||
if (
|
||||
versionSpec === 'current' ||
|
||||
versionSpec === 'latest' ||
|
||||
versionSpec === 'node'
|
||||
) {
|
||||
core.info(`getting latest node version...`);
|
||||
return nodeVersions[0].version;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user