Skip to content

Commit

Permalink
Changelog script reminds how to push tags
Browse files Browse the repository at this point in the history
  • Loading branch information
edemaine committed Aug 20, 2024
1 parent c14ac06 commit cf99393
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions build/changelog.civet
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ run 'git', ['tag', '--list', '--format=%(object) %(refname:short)', 'v*']
[commit, tag] := line.split ' '
existingTag.set tag, commit

tags .= 0
function versionTag(version: Version): void
tag := `v${version.version}`
if existingTag.has tag
Expand All @@ -97,6 +98,7 @@ function versionTag(version: Version): void
else if version.commit?
console.log `Tagging ${tag} -> ${version.commit}`
run 'git', ['tag', '-a', tag, '-m', tag, version.commit]
tags++
version.tag = tag

for each version of versions
Expand Down Expand Up @@ -282,3 +284,6 @@ if uncommitted?
versionTag uncommitted
else
console.log `!! Don't forget to do a release commit with new package.json and CHANGELOG.md`

if tags
console.log `!! Don't forget to push ${tags} new tags with 'git push --follow-tags'`

0 comments on commit cf99393

Please sign in to comment.