#!/usr/bin/env sh

version=$(git tag -l | tail -n1 | sed -e s/^v//)
sed -i -e "s/\(const packageVersion =\).\+/\1 '${version}'/" test/ss_to_json.js

git add test/ss_to_json.js
git commit -m "Commit upgrade to v${version}"
git push origin $(git tag -l | tail -n1)

#!/usr/bin/env sh

version=$(git tag -l | tail -n1 | sed -e s/^v//)
branch="release/${version}"

git checkout -b ${branch}
sed -i -e "s/\(const packageVersion =\).\+/\1 '${version}'/" test/ss_to_json.js

git add test/ss_to_json.js
git commit -m "Commit upgrade to v${version}"
git push origin ${branch}

Add processing to push release branch
Add processing to push release branch
