mirror of
				https://github.com/actions/setup-node.git
				synced 2025-11-04 01:23:34 +00:00 
			
		
		
		
	fix toolcache
This commit is contained in:
		
							parent
							
								
									817ef3e405
								
							
						
					
					
						commit
						3b39c278a3
					
				
							
								
								
									
										2
									
								
								dist/setup/index.js
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								dist/setup/index.js
									
									
									
									
										vendored
									
									
								
							@ -73228,7 +73228,7 @@ function getNode(versionSpec, stable, checkLatest, auth, arch = os.arch()) {
 | 
				
			|||||||
        let toolPath;
 | 
					        let toolPath;
 | 
				
			||||||
        if (isNightly) {
 | 
					        if (isNightly) {
 | 
				
			||||||
            const nightlyVersion = findNightlyVersionInHostedToolcache(versionSpec, osArch);
 | 
					            const nightlyVersion = findNightlyVersionInHostedToolcache(versionSpec, osArch);
 | 
				
			||||||
            toolPath = tc.find('node', nightlyVersion, osArch);
 | 
					            toolPath = nightlyVersion && tc.find('node', nightlyVersion, osArch);
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
        else {
 | 
					        else {
 | 
				
			||||||
            toolPath = tc.find('node', versionSpec, osArch);
 | 
					            toolPath = tc.find('node', versionSpec, osArch);
 | 
				
			||||||
 | 
				
			|||||||
@ -88,7 +88,7 @@ export async function getNode(
 | 
				
			|||||||
      versionSpec,
 | 
					      versionSpec,
 | 
				
			||||||
      osArch
 | 
					      osArch
 | 
				
			||||||
    );
 | 
					    );
 | 
				
			||||||
    toolPath = tc.find('node', nightlyVersion, osArch);
 | 
					    toolPath = nightlyVersion && tc.find('node', nightlyVersion, osArch);
 | 
				
			||||||
  } else {
 | 
					  } else {
 | 
				
			||||||
    toolPath = tc.find('node', versionSpec, osArch);
 | 
					    toolPath = tc.find('node', versionSpec, osArch);
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user