mirror of
				https://github.com/actions/setup-node.git
				synced 2025-10-31 23:43:33 +00:00 
			
		
		
		
	Update index.js
This commit is contained in:
		
							parent
							
								
									58a4f3c224
								
							
						
					
					
						commit
						0debf8f5a8
					
				
							
								
								
									
										4
									
								
								dist/setup/index.js
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										4
									
								
								dist/setup/index.js
									
									
									
									
										vendored
									
									
								
							| @ -93715,7 +93715,7 @@ class BasePrereleaseNodejs extends base_distribution_1.default { | ||||
|         let toolPath = ''; | ||||
|         let nodeInstallationPath = core.getInput('node-installation-path'); | ||||
|         if (os_1.default.platform() != 'win32') { | ||||
|             nodeInstallationPath = nodeInstallationPath.replace(/\\?bin$/, ''); | ||||
|             nodeInstallationPath = nodeInstallationPath.replace(/\\bin$/, '').replace(/\/bin$/, ''); | ||||
|         } | ||||
|         const localVersionPaths = tc | ||||
|             .findAllVersions('node', this.nodeInfo.arch) | ||||
| @ -93996,7 +93996,7 @@ class BaseDistribution { | ||||
|             info = info || {}; // satisfy compiler, never null when reaches here
 | ||||
|             let nodeInstallationPath = core.getInput('node-installation-path'); | ||||
|             if (this.osPlat != 'win32') { | ||||
|                 nodeInstallationPath = nodeInstallationPath.replace(/\\?bin$/, ''); | ||||
|                 nodeInstallationPath = nodeInstallationPath.replace(/\\bin$/, '').replace(/\/bin$/, ''); | ||||
|             } | ||||
|             if (this.osPlat == 'win32') { | ||||
|                 const extension = this.nodeInfo.arch === 'arm64' ? '.zip' : '.7z'; | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user