summaryrefslogtreecommitdiff
path: root/scripts/release.sh
blob: 11e9ac85fd4d2399691dd2e2c5b88572a3f4169e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
sed -i.bak s/__REPLACE_VERSION__/$1/g package.json
yarn test || exit 1
branchName=$(git symbolic-ref HEAD | sed -e 's,.*/\(.*\),\1,')
echo $branchName
# TODO find a better way to exlcude
# docs from the stash
git stash push -- src || exit 1
git checkout master
yarn run build || exit 1
# this is a hack required
# to serve paths that start
# with '_'
touch docs/.nojekyll
git add docs package.json
git commit -m "Update docs for release $1"
git tag $1
git push --tags origin master
git checkout $branchName
git stash pop
# sed -i.bak s/$1/__REPLACE_VERSION__/g package.json