mirror of
				https://github.com/actions/setup-node.git
				synced 2025-10-31 16:14:00 +08:00 
			
		
		
		
	change to streams
This commit is contained in:
		
							
								
								
									
										11
									
								
								dist/setup/index.js
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										11
									
								
								dist/setup/index.js
									
									
									
									
										vendored
									
									
								
							| @@ -71846,7 +71846,16 @@ function run() { | |||||||
|                 yield installer.getNode(version, stable, checkLatest, auth, arch); |                 yield installer.getNode(version, stable, checkLatest, auth, arch); | ||||||
|             } |             } | ||||||
|             // Output version of node is being used
 |             // Output version of node is being used
 | ||||||
|             const { stdout: installedVersion } = yield exec.getExecOutput('node', ['--version'], { ignoreReturnCode: true, silent: false }); |             let installedVersion = ''; | ||||||
|  |             const result = yield exec.exec('node', ['--version'], { | ||||||
|  |                 ignoreReturnCode: true, | ||||||
|  |                 silent: false, | ||||||
|  |                 listeners: { | ||||||
|  |                     stdout: data => { | ||||||
|  |                         installedVersion = data.toString(); | ||||||
|  |                     } | ||||||
|  |                 } | ||||||
|  |             }); | ||||||
|             core.setOutput('node-version', installedVersion); |             core.setOutput('node-version', installedVersion); | ||||||
|             const registryUrl = core.getInput('registry-url'); |             const registryUrl = core.getInput('registry-url'); | ||||||
|             const alwaysAuth = core.getInput('always-auth'); |             const alwaysAuth = core.getInput('always-auth'); | ||||||
|   | |||||||
							
								
								
									
										15
									
								
								src/main.ts
									
									
									
									
									
								
							
							
						
						
									
										15
									
								
								src/main.ts
									
									
									
									
									
								
							| @@ -41,11 +41,16 @@ export async function run() { | |||||||
|     } |     } | ||||||
|  |  | ||||||
|     // Output version of node is being used |     // Output version of node is being used | ||||||
|     const {stdout: installedVersion} = await exec.getExecOutput( |     let installedVersion = ''; | ||||||
|       'node', |     const result = await exec.exec('node', ['--version'], { | ||||||
|       ['--version'], |       ignoreReturnCode: true, | ||||||
|       {ignoreReturnCode: true, silent: false} |       silent: false, | ||||||
|     ); |       listeners: { | ||||||
|  |         stdout: data => { | ||||||
|  |           installedVersion = data.toString(); | ||||||
|  |         } | ||||||
|  |       } | ||||||
|  |     }); | ||||||
|     core.setOutput('node-version', installedVersion); |     core.setOutput('node-version', installedVersion); | ||||||
|  |  | ||||||
|     const registryUrl: string = core.getInput('registry-url'); |     const registryUrl: string = core.getInput('registry-url'); | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Dmitry Shibanov
					Dmitry Shibanov