Skip to content

Commit 9781d05

Browse files
committed
improve bump version script again
It now makes a new branch by itself
1 parent b63f8c2 commit 9781d05

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

bump-version.sh

+5-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
11
#!/bin/sh
22

33
npm version --workspaces "$@"
4-
git add .
54

65
VERSION=v$(cat adapter/package.json | jq -r .version)
6+
git checkout -b release/$VERSION
7+
8+
git add .
79
git commit -m $VERSION
10+
git push -u origin release/$VERSION
11+
812
git tag $VERSION
9-
git push origin release/$VERSION
1013
git push origin $VERSION

0 commit comments

Comments
 (0)