Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .releaserc.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
[
"@semantic-release/git",
{
"assets": ["pyproject.toml"],
"assets": ["pyproject.toml", "uv.lock"],
"message": "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"
}
]
Expand Down
8 changes: 8 additions & 0 deletions scripts/update-version-number.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,11 @@ fi
echo "Updating Version to: $1"

sed -i "s/version = \".*\"$/version = \"$1\"/" pyproject.toml

# uv.lock records the project's own version as well; unless it matches pyproject.toml, `uv sync --locked` rejects
# the lockfile
sed -i "/^name = \"portal-client\"$/{n;s/^version = \".*\"$/version = \"$1\"/}" uv.lock
if ! grep -A1 '^name = "portal-client"$' uv.lock | grep -qx "version = \"$1\""; then
>&2 echo "Could not update the portal-client version in uv.lock"
exit 1
fi
2 changes: 1 addition & 1 deletion uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading