Skip to content

Commit 185d34f

Browse files
author
Daniel McKenzie
authored
Switch to NPM (#3)
1 parent 2f72b81 commit 185d34f

File tree

4 files changed

+2432
-1968
lines changed

4 files changed

+2432
-1968
lines changed

main.js

Lines changed: 11 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,15 @@
1-
const cp = require('child_process');
2-
cp.execSync(`cd ${__dirname}; yarn install --frozen-lockfile`);
1+
const cp = require("child_process");
2+
cp.execSync(`cd ${__dirname}; npm ci`);
33

4-
const path = require('path');
5-
const core = require('@actions/core');
6-
const lernaChangelog = path.resolve(__dirname, 'node_modules/.bin/lerna-changelog');
4+
const path = require("path");
5+
const core = require("@actions/core");
6+
const lernaChangelog = path.resolve(__dirname, "node_modules/.bin/lerna-changelog");
77

8-
const exec = (cmd) => cp.execSync(cmd).toString().trim();
8+
const exec = cmd => cp.execSync(cmd).toString().trim();
99

10-
const tagFrom = core.getInput('from', {
11-
required: true,
12-
});
13-
const tagTo = core.getInput('to', {
14-
required: true,
15-
});
10+
const tagFrom = core.getInput("from", { required: true });
11+
const tagTo = core.getInput("to", { required: true });
1612

17-
const changelog = exec(`node ${lernaChangelog} --tag-from ${tagFrom} --tag-to ${tagTo}`);
18-
core.setOutput('changelog', JSON.stringify(changelog));
13+
const changelog = exec(`node ${lernaChangelog} --from ${tagFrom} --to ${tagTo}`);
14+
15+
core.setOutput("changelog", JSON.stringify(changelog));

0 commit comments

Comments
 (0)