Update the CHANGELOG when releasing a new version
This commit is contained in:
parent
8058629446
commit
8edc321b08
1 changed files with 2 additions and 0 deletions
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue