From 4e7bf00ee91dfaab9253c988bc6ca94391dd45be Mon Sep 17 00:00:00 2001 From: Cotes Chung <11371340+cotes2020@users.noreply.github.com> Date: Tue, 22 Nov 2022 21:08:37 +0800 Subject: [PATCH] chore: optimize the heading levels in change-log --- tools/release.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tools/release.sh b/tools/release.sh index c4623ea..b9cdfbc 100755 --- a/tools/release.sh +++ b/tools/release.sh @@ -187,6 +187,9 @@ main() { fi fi + # Change heading of Patch version to level 2 (a bug from `standard-version`) + sed -i "s/^### \[/## \[/g" CHANGELOG.md + _version="$(grep '"version":' "$NODE_CONFIG" | sed 's/.*: "//;s/".*//')" echo -e "Bump version number to $_version\n"