diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 20c9f83e70..ba42d7b809 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -132,7 +132,7 @@ jobs: - name: Install dependencies working-directory: src/${{ matrix.package }} - run: uv sync --locked --all-extras --dev + run: uv sync --frozen --all-extras --dev - name: Run pyright working-directory: src/${{ matrix.package }} diff --git a/scripts/release.py b/scripts/release.py index 05d76c0a63..e4ce1274c3 100755 --- a/scripts/release.py +++ b/scripts/release.py @@ -97,6 +97,9 @@ def update_version(self, version: Version): with open(self.path / "pyproject.toml", "w") as f: f.write(tomlkit.dumps(data)) + # Regenerate uv.lock to match the updated pyproject.toml + subprocess.run(["uv", "lock"], cwd=self.path, check=True) + def has_changes(path: Path, git_hash: GitHash) -> bool: """Check if any files changed between current state and git hash"""