mirror of
				https://github.com/actions/setup-node.git
				synced 2025-11-04 21:39:11 +08:00 
			
		
		
		
	feat: add arch to getNode
Co-Authored-By: Tyler Ang-Wanek <tylerw@axosoft.com>
This commit is contained in:
		@@ -27,10 +27,11 @@ export async function getNode(
 | 
			
		||||
  versionSpec: string,
 | 
			
		||||
  stable: boolean,
 | 
			
		||||
  checkLatest: boolean,
 | 
			
		||||
  auth: string | undefined
 | 
			
		||||
  auth: string | undefined,
 | 
			
		||||
  arch: string = os.arch()
 | 
			
		||||
) {
 | 
			
		||||
  let osPlat: string = os.platform();
 | 
			
		||||
  let osArch: string = translateArchToDistUrl(os.arch());
 | 
			
		||||
  let osArch: string = translateArchToDistUrl(arch);
 | 
			
		||||
 | 
			
		||||
  if (checkLatest) {
 | 
			
		||||
    core.info('Attempt to resolve the latest version from manifest...');
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user