From 5189d2e72142cf88df8ff758471330f0ca4b08a9 Mon Sep 17 00:00:00 2001 From: Aaron <29749331+aarnphm@users.noreply.github.com> Date: Thu, 20 Jul 2023 18:34:53 -0400 Subject: [PATCH] fix(script): correct patch version for __about__.py Signed-off-by: Aaron <29749331+aarnphm@users.noreply.github.com> --- .github/actions/release.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/actions/release.sh b/.github/actions/release.sh index c6be66b7..5bc82569 100755 --- a/.github/actions/release.sh +++ b/.github/actions/release.sh @@ -64,6 +64,10 @@ release_package() { jq --arg release_version "${version}" '.version = $release_version' < package.json > package.json.tmp && mv package.json.tmp package.json + if [[ $release == 'patch' ]]; then + hatch version "${version}" + fi + towncrier build --yes --version "${version}" git add CHANGELOG.md changelog.d src/openllm/__about__.py package.json git commit -S -sm "infra: prepare for release ${version} [generated]"