diff options
| -rw-r--r-- | package.json | 2 | ||||
| -rwxr-xr-x | scripts/bump-version.sh | 12 |
2 files changed, 13 insertions, 1 deletions
diff --git a/package.json b/package.json index e04204e..c7666f5 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "kioku", - "version": "0.4.2", + "version": "0.4.3", "description": "An Anki clone", "main": "src/server/index.ts", "scripts": { 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" |
