aboutsummaryrefslogtreecommitdiffhomepage
path: root/scripts
diff options
context:
space:
mode:
authorHsieh Chin Fan <pham@topo.tw>2024-09-21 18:40:19 +0800
committerHsieh Chin Fan <pham@topo.tw>2024-09-22 00:46:50 +0800
commit2d66ef83d38d01e65dbff48110987dbc1f454a17 (patch)
tree77832982ec5ad0407f34f6fac2d20216ebda25fc /scripts
parent98bb740761c350d856df285c603894ac83fa19cd (diff)
chore: npm script for local build
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/update-version.sh14
1 files changed, 14 insertions, 0 deletions
diff --git a/scripts/update-version.sh b/scripts/update-version.sh
new file mode 100755
index 0000000..e5f24db
--- /dev/null
+++ b/scripts/update-version.sh
@@ -0,0 +1,14 @@
1#! /bin/bash
2
3VERSION=`jq -r .version package.json`
4TMP=`mktemp`
5
6read -p "$VERSION -> " -i $VERSION -e ANSWER
7
8jq ".version = \"$ANSWER\"" package.json >$TMP
9cat $TMP >package.json
10
11git reset
12git add package.json; git commit -m "chore(relase): $ANSWER"
13
14git show HEAD