mirror of
				https://kkgithub.com/actions/setup-node.git
				synced 2025-11-04 12:46:16 +08:00 
			
		
		
		
	Add brief comment about supported formats
This commit is contained in:
		@ -192,6 +192,7 @@ function findLtsVersionFromManifest(
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
  core.debug(`LTS alias '${alias}' for Node version '${versionSpec}'`);
 | 
					  core.debug(`LTS alias '${alias}' for Node version '${versionSpec}'`);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  // Supported formats are `lts/<alias>` and `lts/*`. Where asterisk means highest possible LTS.
 | 
				
			||||||
  const release = alias === '*'
 | 
					  const release = alias === '*'
 | 
				
			||||||
   ? candidates.find(x => !!x.lts && x.stable === stable)
 | 
					   ? candidates.find(x => !!x.lts && x.stable === stable)
 | 
				
			||||||
   : candidates.find(x => x.lts?.toLowerCase() === alias && x.stable === stable);
 | 
					   : candidates.find(x => x.lts?.toLowerCase() === alias && x.stable === stable);
 | 
				
			||||||
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user