Skip to content

Commit 034eede

Browse files
committed
add bump script
1 parent 98e2790 commit 034eede

1 file changed

Lines changed: 22 additions & 0 deletions

File tree

bin/bump.sh

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
#!/usr/bin/env sh
2+
3+
set -e
4+
5+
VERSION="$1"
6+
7+
if [ -z "$VERSION" ]
8+
then
9+
echo "error: version not set"
10+
exit 1
11+
fi
12+
13+
echo "setting to $VERSION"
14+
15+
npm version --no-git-tag-version --allow-same-version -C cli $VERSION
16+
npm version --no-git-tag-version --allow-same-version -C website $VERSION
17+
18+
npm version --no-git-tag-version --allow-same-version $VERSION
19+
git add website/package*.json cli/package*.json package*.json
20+
21+
git commit -m "$VERSION"
22+
git tag "v$VERSION" -m "$VERSION"

0 commit comments

Comments
 (0)