Skip to content

Commit

Permalink
Update tools/publish.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
taiki-e committed Jan 1, 2022
1 parent b8ea487 commit 5d67938
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tools/publish.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@ echo "============== CHANGELOG =============="
parse-changelog CHANGELOG.md "${version}"
echo "======================================="

if ! grep <CHANGELOG.md -E "^\\[${version//./\\.}\\]: " >/dev/null; then
bail "not found link to [${version}] in CHANGELOG.md"
fi

# Make sure the same release has not been created in the past.
if gh release view "${tag}" &>/dev/null; then
bail "tag '${tag}' has already been created and pushed"
Expand Down

0 comments on commit 5d67938

Please sign in to comment.