Skip to content

Commit

Permalink
ensure working directory is clean before publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
jlipps committed May 8, 2013
1 parent eb75d8d commit e295446
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions publish.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
#!/bin/bash
set -e
git status | grep "nothing to commit (working directory clean)" >/dev/null
if [ $? -gt 0 ]; then
echo "Working directory isn't clean, commit/clean then publish"
exit 1
fi
version=$(cat package.json | underscore extract version | sed 's/\"//g')
rm -rf build/selendroid/selendroid.mod.apk
npm publish
git tag -a "v$version" -m "tag appium@$version for npm publish"
git push --tags upstream master

0 comments on commit e295446

Please sign in to comment.