-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Log node and npm versions #137
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 3 commits
52eb8a7
0dc69b3
e99a7e6
ffde538
1e163de
2d53d29
28505ad
46903d1
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,7 +1,9 @@ | ||
| import * as core from '@actions/core'; | ||
| import * as io from '@actions/io'; | ||
| import * as installer from './installer'; | ||
| import * as auth from './authutil'; | ||
| import * as path from 'path'; | ||
| import cp from 'child_process'; | ||
|
|
||
| async function run() { | ||
| try { | ||
|
|
@@ -17,6 +19,15 @@ async function run() { | |
| await installer.getNode(version); | ||
| } | ||
|
|
||
| // Output version of node and npm that are being used | ||
| const nodePath = await io.which('node'); | ||
| const nodeVersion = cp.execSync(`${nodePath} --version`); | ||
|
||
| console.log(`Node Version: ${nodeVersion}`); | ||
|
|
||
| const npmPath = await io.which('npm'); | ||
| const npmVersion = cp.execSync(`${npmPath} --version`); | ||
| console.log(`npm Version: ${npmVersion}`); | ||
|
||
|
|
||
| const registryUrl: string = core.getInput('registry-url'); | ||
| const alwaysAuth: string = core.getInput('always-auth'); | ||
| if (registryUrl) { | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Isn't this unused @joshmgross?