Skip to content

Commit 124a493

Browse files
authored
Merge pull request #15 from hotdata-dev/fix/release-uv-lock
fix(release): update uv.lock when preparing a release
2 parents 636877d + 314566b commit 124a493

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

scripts/release.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,10 +122,14 @@ cmd_prepare() {
122122

123123
set_version "$new"
124124
update_changelog "$new"
125+
if command -v uv >/dev/null 2>&1 && [[ -f uv.lock ]]; then
126+
uv lock
127+
fi
125128

126129
branch="release/v${new}"
127130
git checkout -b "$branch"
128131
git add pyproject.toml CHANGELOG.md
132+
[[ -f uv.lock ]] && git add uv.lock
129133
git commit -m "chore: release v${new}"
130134

131135
pkg="$(get_pkg_name)"

0 commit comments

Comments
 (0)