From 53ba4d1298288bf14ccf18bac485fc10c3217e84 Mon Sep 17 00:00:00 2001 From: Hein Date: Wed, 23 Sep 2026 23:00:15 +0200 Subject: [PATCH] feat(release): add release script and Makefile target --- scripts/release.sh | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/scripts/release.sh b/scripts/release.sh index a1489dc..fcfd2fb 100755 --- a/scripts/release.sh +++ b/scripts/release.sh @@ -46,8 +46,13 @@ if git rev-parse "$TAG" >/dev/null 2>&1; then exit 1 fi -git add -A -git commit -m "RELEASING: Releasing 1 package(s)" +# .changeset/config.json has "commit": true, so `changeset version` already +# committed the bump itself; only commit here if something was left behind. +if [ -n "$(git status --porcelain)" ]; then + git add -A + git commit -m "RELEASING: Releasing 1 package(s)" +fi + git tag "$TAG" git push origin HEAD "$TAG"