From 2eb4267cddb942d289425fc45a2efbc40f09a13d Mon Sep 17 00:00:00 2001 From: Cotes Chung <11371340+cotes2020@users.noreply.github.com> Date: Sun, 2 Jul 2023 20:47:02 +0800 Subject: [PATCH] build(release): remove extra blank lines in changelog --- tools/release | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/release b/tools/release index d2782dc..43182eb 100755 --- a/tools/release +++ b/tools/release @@ -193,6 +193,8 @@ main() { # Change heading of Patch version to level 2 (a bug from `standard-version`) sed -i "s/^### \[/## \[/g" CHANGELOG.md + # Replace multiple empty lines with a single empty line + sed -i "/^$/N;/^\n$/D" CHANGELOG.md _version="$(grep '"version":' "$NODE_CONFIG" | sed 's/.*: "//;s/".*//')"