Skip to content

Commit d1b2e24

Browse files
committed
fix(release): include all file changes in version bump detection
Remove the .py/.ts suffix filter from has_changes() so that lockfile changes (uv.lock, package-lock.json) and other non-source file changes trigger a version bump. Any change within a package directory should result in a version update to keep pyproject.toml/package.json versions in sync with the CalVer release tag. Fixes modelcontextprotocol#3870
1 parent f424458 commit d1b2e24

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

‎scripts/release.py‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -112,9 +112,8 @@ def has_changes(path: Path, git_hash: GitHash) -> bool:
112112
text=True,
113113
)
114114

115-
changed_files = [Path(f) for f in output.stdout.splitlines()]
116-
relevant_files = [f for f in changed_files if f.suffix in [".py", ".ts"]]
117-
return len(relevant_files) >= 1
115+
changed_files = output.stdout.splitlines()
116+
return len(changed_files) >= 1
118117
except subprocess.CalledProcessError:
119118
return False
120119

0 commit comments

Comments
 (0)