mirror of
https://github.com/actions/setup-node.git
synced 2025-04-22 03:28:42 +00:00
Log versions
This commit is contained in:
parent
2ebb54b081
commit
d5ec80f88a
2 changed files with 2 additions and 0 deletions
1
dist/setup/index.js
vendored
1
dist/setup/index.js
vendored
|
@ -71901,6 +71901,7 @@ function printEnvDetailsAndSetOutput() {
|
|||
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}`);
|
||||
}));
|
||||
yield Promise.all(promises);
|
||||
core.endGroup();
|
||||
|
|
|
@ -106,6 +106,7 @@ export async function printEnvDetailsAndSetOutput() {
|
|||
const output = await getToolVersion(tool, ['--version']);
|
||||
|
||||
core.setOutput(`${tool}-version`, output);
|
||||
core.info(`${tool} version is ${output}`);
|
||||
});
|
||||
|
||||
await Promise.all(promises);
|
||||
|
|
Loading…
Add table
Reference in a new issue