Skip to content

Commit 2eb4267

Browse files
committed
build(release): remove extra blank lines in changelog
1 parent e4e76f0 commit 2eb4267

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tools/release

+2
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,8 @@ main() {
193193

194194
# Change heading of Patch version to level 2 (a bug from `standard-version`)
195195
sed -i "s/^### \[/## \[/g" CHANGELOG.md
196+
# Replace multiple empty lines with a single empty line
197+
sed -i "/^$/N;/^\n$/D" CHANGELOG.md
196198

197199
_version="$(grep '"version":' "$NODE_CONFIG" | sed 's/.*: "//;s/".*//')"
198200

0 commit comments

Comments
 (0)