apply review feedback

This commit is contained in:
Filip Skokan 2022-07-01 00:46:13 +02:00
parent 0d7418813c
commit adeb189fd8
2 changed files with 6 additions and 16 deletions

View file

@ -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');