mirror of
https://github.com/actions/setup-node.git
synced 2025-07-27 00:48:24 +02:00
apply prettier
This commit is contained in:
parent
abfc09feda
commit
9d28777916
2 changed files with 34 additions and 29 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue