Skip to content

Commit

Permalink
Merge pull request #1223 from nylen/improve-release-script-2
Browse files Browse the repository at this point in the history
Show latest version number instead of "upcoming" in changelog
  • Loading branch information
nylen committed Nov 4, 2014
2 parents bc733a0 + fef32cd commit 6d1ae6d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions release.sh
Expand Up @@ -21,6 +21,11 @@ github-changes -o request -r request \
--only-pulls --use-commit-body \
|| exit 1

# Since the tag for the new version hasn't been pushed yet, any changes in it
# will be marked as "upcoming"
version="$(grep '"version"' package.json | cut -d'"' -f4)"
sed -i -e "s/^### upcoming/### v$version/" CHANGELOG.md

# This may fail if no changelog updates
# TODO: would this ever actually happen? handle it better?
git add CHANGELOG.md; git commit -m 'Update changelog'
Expand Down

0 comments on commit 6d1ae6d

Please sign in to comment.