From 3d596983b8b4d46dd06618c4163e2a841190edd6 Mon Sep 17 00:00:00 2001 From: bendtherules Date: Tue, 14 Apr 2026 18:04:28 +0530 Subject: [PATCH] feat: release script with automatic version bump commit --- scripts/release.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/scripts/release.sh b/scripts/release.sh index ca26ceb..8b3791a 100755 --- a/scripts/release.sh +++ b/scripts/release.sh @@ -66,6 +66,13 @@ if [ -n "$BUMP_VERSION" ]; then echo "📦 Bumping $BUMP_VERSION version..." npm version $BUMP_VERSION --no-git-tag-version echo "✅ Version bumped" + + # Commit version bump + echo "" + echo "📝 Committing version bump..." + git add package.json + git commit -m "chore: bump version to $(grep -o '"version": "[^"]*"' package.json | cut -d'"' -f4)" + echo "✅ Version bump committed" fi echo ""