aboutsummaryrefslogtreecommitdiffhomepage
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/bump-version.sh12
1 files changed, 12 insertions, 0 deletions
diff --git a/scripts/bump-version.sh b/scripts/bump-version.sh
new file mode 100755
index 0000000..7f28180
--- /dev/null
+++ b/scripts/bump-version.sh
@@ -0,0 +1,12 @@
+#!/usr/bin/env bash
+
+set -euo pipefail
+
+VERSION="$1"
+
+sed -i 's/"version": ".*"/"version": "'$VERSION'"/' package.json
+git add package.json
+git commit -m "chore: bump version to v$VERSION"
+git tag "v$VERSION"
+
+echo "Bumped to v$VERSION"