Skip to content

Commit

Permalink
perf: 提升构建性能
Browse files Browse the repository at this point in the history
  • Loading branch information
winixt committed Sep 20, 2020
1 parent 37dfb34 commit 79812ec
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/actions/generate-changelog/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ const cp = require("child_process");
cp.execSync(`cd ${__dirname}; npm ci`);

const path = require("path");
// const core = require("@actions/core");
const core = require("@actions/core");
const lernaChangelog = path.resolve(__dirname, "node_modules/.bin/conventional-changelog");

const exec = cmd => cp.execSync(cmd).toString().trim();

const changelog = exec(`node ${lernaChangelog} -p cmyr-config -r 2`);
console.log(changelog);

// core.setOutput("changelog", JSON.stringify(changelog.split('\n').slice(4).join('\n')));
core.setOutput("changelog", JSON.stringify(changelog.split('\n').slice(4).join('\n')));

0 comments on commit 79812ec

Please sign in to comment.