mirror of
				https://github.com/actions/setup-node.git
				synced 2025-10-31 16:23:34 +00:00 
			
		
		
		
	Merge c1b361d8083d252944b3ccf328ccd07d68417be8 into 89d709d423dc495668cd762a18dd4a070611be3f
This commit is contained in:
		
						commit
						71da4aa3ff
					
				
							
								
								
									
										5
									
								
								dist/setup/index.js
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										5
									
								
								dist/setup/index.js
									
									
									
									
										vendored
									
									
								
							| @ -99743,6 +99743,7 @@ const util_1 = __nccwpck_require__(54527); | ||||
| const constants_1 = __nccwpck_require__(27242); | ||||
| function run() { | ||||
|     return __awaiter(this, void 0, void 0, function* () { | ||||
|         var _a; | ||||
|         try { | ||||
|             //
 | ||||
|             // Version is optional.  If supplied, install / use from the tool cache
 | ||||
| @ -99761,6 +99762,10 @@ function run() { | ||||
|             if (!arch) { | ||||
|                 arch = os_1.default.arch(); | ||||
|             } | ||||
|             if ((_a = process.env.AGENT_TOOLSDIRECTORY) === null || _a === void 0 ? void 0 : _a.trim()) { | ||||
|                 process.env['RUNNER_TOOL_CACHE'] = process.env['AGENT_TOOLSDIRECTORY']; | ||||
|             } | ||||
|             core.debug(`Node is expected to be installed into ${process.env['RUNNER_TOOL_CACHE']}`); | ||||
|             if (version) { | ||||
|                 const token = core.getInput('token'); | ||||
|                 const auth = !token ? undefined : `token ${token}`; | ||||
|  | ||||
| @ -37,6 +37,14 @@ export async function run() { | ||||
|       arch = os.arch(); | ||||
|     } | ||||
| 
 | ||||
|     if (process.env.AGENT_TOOLSDIRECTORY?.trim()) { | ||||
|       process.env['RUNNER_TOOL_CACHE'] = process.env['AGENT_TOOLSDIRECTORY']; | ||||
|     } | ||||
| 
 | ||||
|     core.debug( | ||||
|       `Node is expected to be installed into ${process.env['RUNNER_TOOL_CACHE']}` | ||||
|     ); | ||||
| 
 | ||||
|     if (version) { | ||||
|       const token = core.getInput('token'); | ||||
|       const auth = !token ? undefined : `token ${token}`; | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user