Skip to content

Commit

Permalink
Add bump and publish scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
thcolin committed Nov 25, 2018
1 parent f723831 commit 591d010
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
19 changes: 19 additions & 0 deletions bump.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#!env bash

[[ '' == $1 ]] && echo "Please provide version argument: x.x.x" && exit 1

git stash
# npm run test
npm run build
npm --no-git-tag-version version $1
git add -f dist package.json
git commit -m $1
git tag v$1
git push --tags
git reset --hard HEAD~1
npm --no-git-tag-version version $1
git add package.json
git add package-lock.json
git commit -m $1
git push
git stash pop
7 changes: 7 additions & 0 deletions publish.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!env bash

[[ '' == $1 ]] && echo "Please provide version argument: x.x.x or 'latest'" && exit 1

docker build -t sensorr:$1 .
docker tag sensorr:$1 thcolin/sensorr:$1
docker push thcolin/sensorr:$1

0 comments on commit 591d010

Please sign in to comment.