Skip to content

Commit

Permalink
[fixed] changelog usage with 'git tag command'
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexKVal committed Jul 13, 2015
1 parent c18d297 commit b4c6d9f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/release.js
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,11 @@ function release({ type, preid }) {

// tag and release
console.log('Tagging: '.cyan + vVersion.green);
safeRun(`changelog --title ${vVersion} -s | git tag -a -F - ${vVersion}`);
if (isCommitsChangelogUsed) {
safeRun(`changelog --title ${vVersion} -s | git tag -a -F - ${vVersion}`);
} else {
safeRun(`git tag -a --message=${vVersion} ${vVersion}`);
}
safeRun('git push');
safeRun('git push --tags');
console.log('Tagged: '.cyan + vVersion.green);
Expand Down

0 comments on commit b4c6d9f

Please sign in to comment.