Skip to content

Commit

Permalink
Chore: update changelog script, add CHANGES.md
Browse files Browse the repository at this point in the history
  • Loading branch information
DonutEspresso committed Sep 8, 2017
1 parent 2308c03 commit d9a9ac1
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
Empty file added CHANGES.md
Empty file.
10 changes: 9 additions & 1 deletion tools/changelog.js
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -539,6 +539,14 @@ function determineNextSemver(categorizedCommits) {
// get last version from git, split so we can increment
const lastReleasedVersion = git.getLastReleasedVersion();

// if undefined, this is the first release ever.
if (lastReleasedVersion === 'undefined') {
return {
version: 1,
type: 'major'
};
}

// if we have breaking commits, rev major version
if (breaking && breaking.length >= 1) {
return {
Expand Down Expand Up @@ -586,7 +594,7 @@ if (ACTION === 'generate') {

// rev package.json
execSync('npm version ' + next.type + ' --no-git-tag-version');
// do git commands and commit
// // do git commands and commit
execSync('git add .');
execSync('git commit -m ' + next.version);
execSync('git tag v' + next.version);
Expand Down

0 comments on commit d9a9ac1

Please sign in to comment.