Skip to content

Commit

Permalink
Await exec calls to ensure proper version ordering
Browse files Browse the repository at this point in the history
  • Loading branch information
joshmgross committed Apr 21, 2020
1 parent 28505ad commit 46903d1
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
exec.exec('node', ['--version']);
yield exec.exec('node', ['--version']);
// Older versions of Node don't include npm, so don't let this call fail
exec.exec('npm', ['--version'], {
yield 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
exec.exec('node', ['--version']);
await exec.exec('node', ['--version']);

// Older versions of Node don't include npm, so don't let this call fail
exec.exec('npm', ['--version'], {
await exec.exec('npm', ['--version'], {
ignoreReturnCode: true
});

Expand Down

0 comments on commit 46903d1

Please sign in to comment.