mirror of
https://github.com/actions/setup-node.git
synced 2025-04-22 03:28:42 +00:00
Remove useless info from output
This commit is contained in:
parent
d5ec80f88a
commit
aff79839ca
2 changed files with 9 additions and 4 deletions
6
dist/setup/index.js
vendored
6
dist/setup/index.js
vendored
|
@ -71900,8 +71900,10 @@ function printEnvDetailsAndSetOutput() {
|
|||
core.startGroup('Environment details');
|
||||
const promises = ['node', 'npm', 'yarn'].map((tool) => __awaiter(this, void 0, void 0, function* () {
|
||||
const output = yield getToolVersion(tool, ['--version']);
|
||||
core.setOutput(`${tool}-version`, output);
|
||||
core.info(`${tool} version is ${output}`);
|
||||
if (tool === 'node') {
|
||||
core.setOutput(`${tool}-version`, output);
|
||||
}
|
||||
core.info(`${tool}: ${output}`);
|
||||
}));
|
||||
yield Promise.all(promises);
|
||||
core.endGroup();
|
||||
|
|
|
@ -105,8 +105,11 @@ export async function printEnvDetailsAndSetOutput() {
|
|||
const promises = ['node', 'npm', 'yarn'].map(async tool => {
|
||||
const output = await getToolVersion(tool, ['--version']);
|
||||
|
||||
core.setOutput(`${tool}-version`, output);
|
||||
core.info(`${tool} version is ${output}`);
|
||||
if (tool === 'node') {
|
||||
core.setOutput(`${tool}-version`, output);
|
||||
}
|
||||
|
||||
core.info(`${tool}: ${output}`);
|
||||
});
|
||||
|
||||
await Promise.all(promises);
|
||||
|
|
Loading…
Add table
Reference in a new issue