Skip to content

Commit 1419db3

Browse files
committed
ci: compare against last Soldeer publish for bump analysis
Tag soldeer-published after each successful Soldeer publish. The bump script now compares against that tag so Claude sees the diff from what users actually have, not intermediate tags from failed publishes.
1 parent dd73412 commit 1419db3

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

.github/workflows/release.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,3 +82,8 @@ jobs:
8282
echo "Publishing uint-quantization-lib~$VERSION to Soldeer..."
8383
soldeer login --token "$SOLDEER_TOKEN"
8484
soldeer push uint-quantization-lib~"$VERSION"
85+
86+
- name: Tag last Soldeer publish
87+
run: |
88+
git tag -f soldeer-published
89+
git push origin soldeer-published --force

scripts/analyze-bump.sh

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,11 @@ if [ -z "${CLAUDE_CODE_OAUTH_TOKEN:-}" ]; then
1010
exit 0
1111
fi
1212

13-
# Comparison base: last release tag, or the repo root for the first release
14-
if [ -n "${LAST_RELEASE_GIT_TAG:-}" ]; then
13+
# Comparison base: last successful Soldeer publish, then last release tag, then repo root.
14+
# This ensures the bump reflects what users actually have, not intermediate failed publishes.
15+
if git rev-parse soldeer-published >/dev/null 2>&1; then
16+
BASE="soldeer-published"
17+
elif [ -n "${LAST_RELEASE_GIT_TAG:-}" ]; then
1518
BASE="$LAST_RELEASE_GIT_TAG"
1619
else
1720
BASE=$(git rev-list --max-parents=0 HEAD)

0 commit comments

Comments
 (0)