summaryrefslogtreecommitdiff
path: root/scripts/release
blob: 9a2c3c445b1bce27458cce50686f949c465bd4e5 (plain)
1
2
3
4
5
6
7
8
9
10
11
if [ $# -eq 0 ]; then
    echo "You must pass the version number."
    exit 1
fi

sed -i "4s/.*/  \"version\": \"$1\",/" package.json
sed -i "5s/.*/    \"version\": \"$1\",/" app.json
yarn
git add package.* app.json
git commit -m "release: version $1"
git tag -a "v$1" -m "Version $1"