Move version to args
This commit is contained in:
parent
2d53d29868
commit
28505ad4d3
2 changed files with 4 additions and 4 deletions
4
dist/index.js
vendored
4
dist/index.js
vendored
|
@ -15220,9 +15220,9 @@ function run() {
|
||||||
yield installer.getNode(version);
|
yield installer.getNode(version);
|
||||||
}
|
}
|
||||||
// Output version of node and npm that are being used
|
// Output version of node and npm that are being used
|
||||||
const nodeVersion = exec.exec(`"$ --version`);
|
exec.exec('node', ['--version']);
|
||||||
// Older versions of Node don't include npm, so don't let this call fail
|
// Older versions of Node don't include npm, so don't let this call fail
|
||||||
const npmVersion = exec.exec(`npm --version`, undefined, {
|
exec.exec('npm', ['--version'], {
|
||||||
ignoreReturnCode: true
|
ignoreReturnCode: true
|
||||||
});
|
});
|
||||||
const registryUrl = core.getInput('registry-url');
|
const registryUrl = core.getInput('registry-url');
|
||||||
|
|
|
@ -20,10 +20,10 @@ async function run() {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Output version of node and npm that are being used
|
// Output version of node and npm that are being used
|
||||||
const nodeVersion = exec.exec(`"$ --version`);
|
exec.exec('node', ['--version']);
|
||||||
|
|
||||||
// Older versions of Node don't include npm, so don't let this call fail
|
// Older versions of Node don't include npm, so don't let this call fail
|
||||||
const npmVersion = exec.exec(`npm --version`, undefined, {
|
exec.exec('npm', ['--version'], {
|
||||||
ignoreReturnCode: true
|
ignoreReturnCode: true
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue