Skip to content

Commit

Permalink
Log npm & yarn versions
Browse files Browse the repository at this point in the history
  • Loading branch information
Andarist committed Oct 23, 2019
1 parent 6ecfd2d commit 6a1871c
Show file tree
Hide file tree
Showing 10 changed files with 44 additions and 32 deletions.
3 changes: 3 additions & 0 deletions lib/setup-node.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
};
Object.defineProperty(exports, "__esModule", { value: true });
const core = __importStar(require("@actions/core"));
const exec_1 = require("@actions/exec");
const installer = __importStar(require("./installer"));
const auth = __importStar(require("./authutil"));
const path = __importStar(require("path"));
Expand Down Expand Up @@ -44,6 +45,8 @@ function run() {
console.log(`##[add-matcher]${path.join(matchersPath, 'tsc.json')}`);
console.log(`##[add-matcher]${path.join(matchersPath, 'eslint-stylish.json')}`);
console.log(`##[add-matcher]${path.join(matchersPath, 'eslint-compact.json')}`);
yield exec_1.exec('npm --version');
yield exec_1.exec('yarn --version');
}
catch (error) {
core.setFailed(error.message);
Expand Down
12 changes: 6 additions & 6 deletions node_modules/@actions/exec/README.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion node_modules/@actions/exec/lib/exec.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion node_modules/@actions/exec/lib/exec.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions node_modules/@actions/exec/lib/toolrunner.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion node_modules/@actions/exec/lib/toolrunner.js.map

Large diffs are not rendered by default.

35 changes: 19 additions & 16 deletions node_modules/@actions/exec/package.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,12 @@
"license": "MIT",
"dependencies": {
"@actions/core": "^1.0.0",
"@actions/exec": "^1.0.1",
"@actions/github": "^1.0.0",
"@actions/io": "^1.0.0",
"@actions/tool-cache": "^1.0.0",
"typed-rest-client": "^1.5.0",
"semver": "^6.1.1"
"semver": "^6.1.1",
"typed-rest-client": "^1.5.0"
},
"devDependencies": {
"@types/jest": "^24.0.13",
Expand Down
3 changes: 3 additions & 0 deletions src/setup-node.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import * as core from '@actions/core';
import {exec} from '@actions/exec';
import * as installer from './installer';
import * as auth from './authutil';
import * as path from 'path';
Expand Down Expand Up @@ -33,6 +34,8 @@ async function run() {
console.log(
`##[add-matcher]${path.join(matchersPath, 'eslint-compact.json')}`
);
await exec('npm --version');
await exec('yarn --version');
} catch (error) {
core.setFailed(error.message);
}
Expand Down

0 comments on commit 6a1871c

Please sign in to comment.