Skip to content

Commit

Permalink
Move version to args
Browse files Browse the repository at this point in the history
  • Loading branch information
joshmgross committed Apr 21, 2020
1 parent 2d53d29 commit 28505ad
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -15220,9 +15220,9 @@ function run() {
yield installer.getNode(version);
}
// 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
const npmVersion = exec.exec(`npm --version`, undefined, {
exec.exec('npm', ['--version'], {
ignoreReturnCode: true
});
const registryUrl = core.getInput('registry-url');
Expand Down
4 changes: 2 additions & 2 deletions src/setup-node.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ async function run() {
}

// 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
const npmVersion = exec.exec(`npm --version`, undefined, {
exec.exec('npm', ['--version'], {
ignoreReturnCode: true
});

Expand Down

0 comments on commit 28505ad

Please sign in to comment.