Update the dependencies on new release

This commit is contained in:
Rodolphe Bréard 2023-09-29 18:42:13 +02:00
parent 3f316e18e7
commit 25ab08b982

View file

@ -27,6 +27,13 @@ update_app_version()
jq ".version = \"${new_version}\"" "package.json" >"${tmp_file}" jq ".version = \"${new_version}\"" "package.json" >"${tmp_file}"
mv "${tmp_file}" "package.json" mv "${tmp_file}" "package.json"
sed -i "s/## \[Unreleased\]/## \[${new_version}\] - ${current_date}/" "CHANGELOG.md" sed -i "s/## \[Unreleased\]/## \[${new_version}\] - ${current_date}/" "CHANGELOG.md"
update_dependencies
}
update_dependencies()
{
npm update
npm outdated
} }
check_working_directory() check_working_directory()
@ -105,6 +112,7 @@ main()
local new_version local new_version
local confirm_release local confirm_release
update_dependencies
check_working_directory check_working_directory
display_app_version display_app_version