mirror of
				https://github.com/actions/setup-node.git
				synced 2025-11-04 06:43:35 +00:00 
			
		
		
		
	version option before preferredNodeVersion
This commit is contained in:
		
							parent
							
								
									ae4555eab1
								
							
						
					
					
						commit
						4f9f7c854d
					
				@ -14,10 +14,10 @@ export async function run() {
 | 
				
			|||||||
    //
 | 
					    //
 | 
				
			||||||
    let version = core.getInput('node-version');
 | 
					    let version = core.getInput('node-version');
 | 
				
			||||||
    if (!version) {
 | 
					    if (!version) {
 | 
				
			||||||
      version = (await preferredNodeVersion()).version;
 | 
					      version = core.getInput('version');
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
    if (!version) {
 | 
					    if (!version) {
 | 
				
			||||||
      version = core.getInput('version');
 | 
					      version = (await preferredNodeVersion()).version;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    let arch = core.getInput('architecture');
 | 
					    let arch = core.getInput('architecture');
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user