Skip to content

Commit

Permalink
chore(changelog): update changelog.js
Browse files Browse the repository at this point in the history
  • Loading branch information
jgcmarins committed May 26, 2019
1 parent 2f7734d commit 85a91b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion changelog.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const argv = require('minimist')(process.argv.slice(1));

git().tags((err, tags) => {
const currentChangelog = fs.readFileSync('./CHANGELOG.md');
const matched = tags.latest != null ? tags.latest.match(/v\d+.\d+.\d+-(\d+)/) : 'v0.0.1-0';
const matched = tags.latest.match(/v\d+.\d+.\d+-(\d+)/);
const build = (idx(matched, _ => Number(_[1])) || 0) + 1;

changelog
Expand Down

0 comments on commit 85a91b0

Please sign in to comment.