Skip to content

Commit

Permalink
Create publish-changelog.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Debaerdm authored Sep 17, 2020
1 parent 6ed2a2c commit bedc392
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions scripts/publish-changelog.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
const VERSION = require('../package.json').version;

try {
const execSync = require('child_process').execSync;
child = execSync(
`npm run changelog && git add . && git commit -m "docs(changelog) update to new ${VERSION}" && git push`
);
console.log('error', child.error);
console.log('stdout ', child.stdout);
console.log('stderr ', child.stderr);

console.log('success!');
} catch (err) {
console.error(err);
}

0 comments on commit bedc392

Please sign in to comment.