From 8edc321b08425d74cf2fa9bde5b894ab89317b1b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rodolphe=20Br=C3=A9ard?= Date: Fri, 11 Aug 2023 19:49:59 +0200 Subject: [PATCH] Update the CHANGELOG when releasing a new version --- release.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/release.sh b/release.sh index 495752f..612247f 100755 --- a/release.sh +++ b/release.sh @@ -22,9 +22,11 @@ update_app_version() { local new_version="$1" local tmp_file="package.json.tmp" + local current_date=$(date "+%Y-%m-%d") jq ".version = \"${new_version}\"" "package.json" >"${tmp_file}" mv "${tmp_file}" "package.json" + sed -i "s/## \[Unreleased\]/## \[${new_version}\] - ${current_date}/" "CHANGELOG.md" } check_working_directory()