build(release): remove extra blank lines in changelog

This commit is contained in:
Cotes Chung 2023-07-02 20:47:02 +08:00
parent e4e76f0a11
commit 2eb4267cdd
1 changed files with 2 additions and 0 deletions

View File

@ -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/".*//')"