File tree Expand file tree Collapse file tree 3 files changed +18
-0
lines changed Expand file tree Collapse file tree 3 files changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -15201,6 +15201,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
1520115201};
1520215202Object.defineProperty(exports, "__esModule", { value: true });
1520315203const core = __importStar(__webpack_require__(470));
15204+ const exec = __importStar(__webpack_require__(986));
1520415205const installer = __importStar(__webpack_require__(749));
1520515206const auth = __importStar(__webpack_require__(202));
1520615207const path = __importStar(__webpack_require__(622));
@@ -15218,6 +15219,12 @@ function run() {
1521815219 if (version) {
1521915220 yield installer.getNode(version);
1522015221 }
15222+ // Output version of node and npm that are being used
15223+ yield exec.exec('node', ['--version']);
15224+ // Older versions of Node don't include npm, so don't let this call fail
15225+ yield exec.exec('npm', ['--version'], {
15226+ ignoreReturnCode: true
15227+ });
1522115228 const registryUrl = core.getInput('registry-url');
1522215229 const alwaysAuth = core.getInput('always-auth');
1522315230 if (registryUrl) {
Original file line number Diff line number Diff line change 2424 "license" : " MIT" ,
2525 "dependencies" : {
2626 "@actions/core" : " ^1.2.2" ,
27+ "@actions/exec" : " ^1.0.3" ,
2728 "@actions/github" : " ^1.1.0" ,
2829 "@actions/http-client" : " ^1.0.6" ,
2930 "@actions/io" : " ^1.0.2" ,
Original file line number Diff line number Diff line change 11import * as core from '@actions/core' ;
2+ import * as exec from '@actions/exec' ;
3+ import * as io from '@actions/io' ;
24import * as installer from './installer' ;
35import * as auth from './authutil' ;
46import * as path from 'path' ;
@@ -17,6 +19,14 @@ async function run() {
1719 await installer . getNode ( version ) ;
1820 }
1921
22+ // Output version of node and npm that are being used
23+ await exec . exec ( 'node' , [ '--version' ] ) ;
24+
25+ // Older versions of Node don't include npm, so don't let this call fail
26+ await exec . exec ( 'npm' , [ '--version' ] , {
27+ ignoreReturnCode : true
28+ } ) ;
29+
2030 const registryUrl : string = core . getInput ( 'registry-url' ) ;
2131 const alwaysAuth : string = core . getInput ( 'always-auth' ) ;
2232 if ( registryUrl ) {
You can’t perform that action at this time.
0 commit comments