mirror of
				https://github.com/actions/setup-node.git
				synced 2025-11-01 00:23:59 +08:00 
			
		
		
		
	Function renaming
This commit is contained in:
		| @@ -38,7 +38,7 @@ export async function getNode( | |||||||
|   let osPlat: string = os.platform(); |   let osPlat: string = os.platform(); | ||||||
|   let osArch: string = translateArchToDistUrl(arch); |   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'); |     core.warning('LTS version is provided. For LTS versions `check-latest` will be automatically set to true'); | ||||||
|     checkLatest = true; |     checkLatest = true; | ||||||
|   } |   } | ||||||
| @@ -179,7 +179,7 @@ export async function getNode( | |||||||
|   core.addPath(toolPath); |   core.addPath(toolPath); | ||||||
| } | } | ||||||
|  |  | ||||||
| function isLts(versionSpec: string): boolean { | function isLtsVersion(versionSpec: string): boolean { | ||||||
|   return versionSpec.startsWith('lts') |   return versionSpec.startsWith('lts') | ||||||
| } | } | ||||||
|  |  | ||||||
| @@ -224,7 +224,7 @@ async function getInfoFromManifest( | |||||||
|     'main' |     'main' | ||||||
|   ); |   ); | ||||||
|  |  | ||||||
|   if (isLts(versionSpec)) { |   if (isLtsVersion(versionSpec)) { | ||||||
|     versionSpec = findLtsVersionFromManifest(versionSpec, stable, releases); |     versionSpec = findLtsVersionFromManifest(versionSpec, stable, releases); | ||||||
|   } |   } | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Gordey Doronin
					Gordey Doronin