From 4b23eca2d86c17130b2e4f63a732a2efcbbdcc0e Mon Sep 17 00:00:00 2001 From: Will-hxw <1176843521@qq.com> Date: Thu, 23 Apr 2026 12:01:53 +0800 Subject: [PATCH] fix(release): include lockfile changes in has_changes() has_changes() only considered .py and .ts files, causing packages with only lockfile changes to be skipped during version bump. Now also checks for common lockfile names: uv.lock, package-lock.json, pnpm-lock.yaml, yarn.lock. Fixes #3870 --- scripts/release.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/scripts/release.py b/scripts/release.py index e4ce1274c3..dfd3021240 100755 --- a/scripts/release.py +++ b/scripts/release.py @@ -113,7 +113,12 @@ def has_changes(path: Path, git_hash: GitHash) -> bool: ) changed_files = [Path(f) for f in output.stdout.splitlines()] - relevant_files = [f for f in changed_files if f.suffix in [".py", ".ts"]] + relevant_files = [ + f + for f in changed_files + if f.suffix in [".py", ".ts"] + or f.name in ("uv.lock", "package-lock.json", "pnpm-lock.yaml", "yarn.lock") + ] return len(relevant_files) >= 1 except subprocess.CalledProcessError: return False