mirror of
https://gitea.com/actions/setup-node.git
synced 2024-11-25 11:39:32 +01:00
Function renaming
This commit is contained in:
parent
e761a7024e
commit
0ec4841e4b
1 changed files with 3 additions and 3 deletions
|
@ -38,7 +38,7 @@ export async function getNode(
|
|||
let osPlat: string = os.platform();
|
||||
let osArch: string = translateArchToDistUrl(arch);
|
||||
|
||||
if (isLts(versionSpec)) {
|
||||
if (isLtsVersion(versionSpec)) {
|
||||
core.warning('LTS version is provided. For LTS versions `check-latest` will be automatically set to true');
|
||||
checkLatest = true;
|
||||
}
|
||||
|
@ -179,7 +179,7 @@ export async function getNode(
|
|||
core.addPath(toolPath);
|
||||
}
|
||||
|
||||
function isLts(versionSpec: string): boolean {
|
||||
function isLtsVersion(versionSpec: string): boolean {
|
||||
return versionSpec.startsWith('lts')
|
||||
}
|
||||
|
||||
|
@ -224,7 +224,7 @@ async function getInfoFromManifest(
|
|||
'main'
|
||||
);
|
||||
|
||||
if (isLts(versionSpec)) {
|
||||
if (isLtsVersion(versionSpec)) {
|
||||
versionSpec = findLtsVersionFromManifest(versionSpec, stable, releases);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue