aboutsummaryrefslogtreecommitdiff
path: root/justfile
diff options
context:
space:
mode:
authorOgulcan Celik <ogulcancelik@gmail.com>2026-08-16 01:11:09 +0300
committerOgulcan Celik <ogulcancelik@gmail.com>2026-08-16 01:11:09 +0300
commit51b7064ef0a02642393bab1d2eea0f4dbd8414d2 (patch)
tree035e5bb44255677ed938b2c8bf1b42cca1ee410c /justfile
parent2b4b3849ca7760d6fcff10cd560553bb8081a8e2 (diff)
fix: keep agent skill aligned with stable releases
refs #2847
Diffstat (limited to 'justfile')
-rw-r--r--justfile11
1 files changed, 7 insertions, 4 deletions
diff --git a/justfile b/justfile
index a23c6d7d..3d2bbbb9 100644
--- a/justfile
+++ b/justfile
@@ -135,7 +135,8 @@ pre-release-check:
just release-docs-check
just bench-render-scale
@echo "release review required: investigate material render-scaling regressions before publishing."
- @echo "release review required: verify skills/herdr/SKILL.md matches the current CLI, IDs, agent lifecycle semantics, and safety guidance."
+ @echo "release review required: update skills/herdr/SKILL.md for this stable release so it matches the current CLI, IDs, agent lifecycle semantics, and safety guidance."
+ @echo "release policy: do not update skills/herdr/SKILL.md between stable releases; preview builds keep the latest stable skill."
# Prepare the release commit without tagging or pushing (usage: just release-prepare 0.1.1)
release-prepare version:
@@ -143,8 +144,10 @@ release-prepare version:
echo "error: version must look like 0.6.6 without a v prefix"; \
exit 1; \
}
- @if [ -n "$(git status --porcelain)" ]; then \
- echo "error: commit your changes first"; \
+ @if ! git diff --quiet -- . ':(exclude)skills/herdr/SKILL.md' || \
+ ! git diff --cached --quiet -- . ':(exclude)skills/herdr/SKILL.md' || \
+ [ -n "$(git ls-files --others --exclude-standard)" ]; then \
+ echo "error: commit all changes except skills/herdr/SKILL.md first"; \
exit 1; \
fi
@git fetch origin master --tags
@@ -158,7 +161,7 @@ release-prepare version:
sed -i.bak 's/^version = ".*"/version = "{{version}}"/' Cargo.toml && rm -f Cargo.toml.bak
cargo update -p herdr --offline
just check
- git add CHANGELOG.md docs/next/CHANGELOG.md Cargo.toml Cargo.lock
+ git add CHANGELOG.md docs/next/CHANGELOG.md Cargo.toml Cargo.lock skills/herdr/SKILL.md
git diff --cached --quiet || git commit -m "release: v{{version}}"
@echo "v{{version}} release commit prepared. Review it, then run: just release-publish {{version}}"