summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorNick Van Doorn <vandoorn.nick@gmail.com>2019-01-20 15:21:34 -0800
committerNick Van Doorn <vandoorn.nick@gmail.com>2019-01-20 15:21:34 -0800
commit2e94d8dce0fb509afd8cdb795067d97ecc4c364f (patch)
tree00279cae424154d8f47254ec8ab2e924384efee7 /scripts
parentfd3317e2bf2f65050583d9c072ee34eea3287d76 (diff)
MONOREPO
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/release.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/scripts/release.sh b/scripts/release.sh
index 7f1f1d0..11e9ac8 100755
--- a/scripts/release.sh
+++ b/scripts/release.sh
@@ -1,3 +1,4 @@
+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
@@ -10,10 +11,10 @@ yarn run build || exit 1
# to serve paths that start
# with '_'
touch docs/.nojekyll
-git add docs
+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