mirror of
				https://github.com/actions/setup-node.git
				synced 2025-11-04 01:33:33 +00:00 
			
		
		
		
	Remove useless info from output
This commit is contained in:
		
							parent
							
								
									d5ec80f88a
								
							
						
					
					
						commit
						aff79839ca
					
				
							
								
								
									
										6
									
								
								dist/setup/index.js
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										6
									
								
								dist/setup/index.js
									
									
									
									
										vendored
									
									
								
							@ -71900,8 +71900,10 @@ function printEnvDetailsAndSetOutput() {
 | 
				
			|||||||
        core.startGroup('Environment details');
 | 
					        core.startGroup('Environment details');
 | 
				
			||||||
        const promises = ['node', 'npm', 'yarn'].map((tool) => __awaiter(this, void 0, void 0, function* () {
 | 
					        const promises = ['node', 'npm', 'yarn'].map((tool) => __awaiter(this, void 0, void 0, function* () {
 | 
				
			||||||
            const output = yield getToolVersion(tool, ['--version']);
 | 
					            const output = yield getToolVersion(tool, ['--version']);
 | 
				
			||||||
            core.setOutput(`${tool}-version`, output);
 | 
					            if (tool === 'node') {
 | 
				
			||||||
            core.info(`${tool} version is ${output}`);
 | 
					                core.setOutput(`${tool}-version`, output);
 | 
				
			||||||
 | 
					            }
 | 
				
			||||||
 | 
					            core.info(`${tool}: ${output}`);
 | 
				
			||||||
        }));
 | 
					        }));
 | 
				
			||||||
        yield Promise.all(promises);
 | 
					        yield Promise.all(promises);
 | 
				
			||||||
        core.endGroup();
 | 
					        core.endGroup();
 | 
				
			||||||
 | 
				
			|||||||
@ -105,8 +105,11 @@ export async function printEnvDetailsAndSetOutput() {
 | 
				
			|||||||
  const promises = ['node', 'npm', 'yarn'].map(async tool => {
 | 
					  const promises = ['node', 'npm', 'yarn'].map(async tool => {
 | 
				
			||||||
    const output = await getToolVersion(tool, ['--version']);
 | 
					    const output = await getToolVersion(tool, ['--version']);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    core.setOutput(`${tool}-version`, output);
 | 
					    if (tool === 'node') {
 | 
				
			||||||
    core.info(`${tool} version is ${output}`);
 | 
					      core.setOutput(`${tool}-version`, output);
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    core.info(`${tool}: ${output}`);
 | 
				
			||||||
  });
 | 
					  });
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  await Promise.all(promises);
 | 
					  await Promise.all(promises);
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user