Skip to content

Commit 48de4c1

Browse files
change to streams
1 parent aab7cc8 commit 48de4c1

File tree

2 files changed

+20
-6
lines changed

2 files changed

+20
-6
lines changed

dist/setup/index.js

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71846,7 +71846,16 @@ function run() {
7184671846
yield installer.getNode(version, stable, checkLatest, auth, arch);
7184771847
}
7184871848
// Output version of node is being used
71849-
const { stdout: installedVersion } = yield exec.getExecOutput('node', ['--version'], { ignoreReturnCode: true, silent: false });
71849+
let installedVersion = '';
71850+
const result = yield exec.exec('node', ['--version'], {
71851+
ignoreReturnCode: true,
71852+
silent: false,
71853+
listeners: {
71854+
stdout: data => {
71855+
installedVersion = data.toString();
71856+
}
71857+
}
71858+
});
7185071859
core.setOutput('node-version', installedVersion);
7185171860
const registryUrl = core.getInput('registry-url');
7185271861
const alwaysAuth = core.getInput('always-auth');

src/main.ts

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,16 @@ export async function run() {
4141
}
4242

4343
// Output version of node is being used
44-
const {stdout: installedVersion} = await exec.getExecOutput(
45-
'node',
46-
['--version'],
47-
{ignoreReturnCode: true, silent: false}
48-
);
44+
let installedVersion = '';
45+
const result = await exec.exec('node', ['--version'], {
46+
ignoreReturnCode: true,
47+
silent: false,
48+
listeners: {
49+
stdout: data => {
50+
installedVersion = data.toString();
51+
}
52+
}
53+
});
4954
core.setOutput('node-version', installedVersion);
5055

5156
const registryUrl: string = core.getInput('registry-url');

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy