Skip to content

Commit e91d050

Browse files
authored
Merge pull request #25 from nicholsn/release/0.3.0
Bump to 0.3.0 and guard release tag/version drift
2 parents 04fdfec + 532b141 commit e91d050

3 files changed

Lines changed: 15 additions & 2 deletions

File tree

.github/workflows/publish.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,19 @@ jobs:
2222
with:
2323
enable-cache: true
2424

25+
# A release tag whose version was never bumped in pyproject.toml only
26+
# surfaces at upload time, as an opaque PyPI "400 File already exists".
27+
# Fail here instead, before the tests even run.
28+
- name: Check the release tag matches the package version
29+
if: github.event_name == 'release'
30+
run: |
31+
tag="${GITHUB_REF_NAME#v}"
32+
packaged="$(uv version --short)"
33+
if [ "$tag" != "$packaged" ]; then
34+
echo "::error::Release tag v$tag does not match pyproject.toml version $packaged — bump the version, merge, then re-tag."
35+
exit 1
36+
fi
37+
2538
- name: Test (gate the release)
2639
run: uv run --group dev pytest -q
2740

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "lokf"
3-
version = "0.2.0"
3+
version = "0.3.0"
44
description = "Linked Open Knowledge Format (LOKF) — a semantic profile of Google's Open Knowledge Format, defined once in LinkML"
55
readme = "README.md"
66
license = "CC-BY-4.0"

uv.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)