build(release): remove extra blank lines in changelog
This commit is contained in:
parent
e4e76f0a11
commit
2eb4267cdd
1 changed files with 2 additions and 0 deletions
|
@ -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/".*//')"
|
||||
|
||||
|
|
Loading…
Reference in a new issue