mirror of
				https://github.com/actions/setup-node.git
				synced 2025-10-31 16:14:00 +08:00 
			
		
		
		
	apply review feedback
This commit is contained in:
		
							
								
								
									
										13
									
								
								src/main.ts
									
									
									
									
									
								
							
							
						
						
									
										13
									
								
								src/main.ts
									
									
									
									
									
								
							| @@ -41,14 +41,11 @@ export async function run() { | ||||
|     } | ||||
|  | ||||
|     // Output version of node is being used | ||||
|     let installedVersion = ''; | ||||
|     await exec.exec('node', ['--version'], { | ||||
|       listeners: { | ||||
|         stdout: data => { | ||||
|           installedVersion += data.toString(); | ||||
|         } | ||||
|       } | ||||
|     }); | ||||
|     const {stdout: installedVersion} = await exec.getExecOutput( | ||||
|       'node', | ||||
|       ['--version'], | ||||
|       {ignoreReturnCode: true} | ||||
|     ); | ||||
|     core.setOutput('node-version', installedVersion); | ||||
|  | ||||
|     const registryUrl: string = core.getInput('registry-url'); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Filip Skokan
					Filip Skokan