From 5d6793871260cd3535db4bb73c32b2aeb09368e8 Mon Sep 17 00:00:00 2001 From: Taiki Endo Date: Sat, 1 Jan 2022 17:54:32 +0900 Subject: [PATCH] Update tools/publish.sh --- tools/publish.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tools/publish.sh b/tools/publish.sh index 82dc856..3aaca9e 100755 --- a/tools/publish.sh +++ b/tools/publish.sh @@ -37,6 +37,10 @@ echo "============== CHANGELOG ==============" parse-changelog CHANGELOG.md "${version}" echo "=======================================" +if ! grep /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"