Skip to content

Commit

Permalink
make sure publish script is smart about how to tag a beta release (fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jlipps committed Nov 13, 2014
1 parent cfc21aa commit 2f08520
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions bin/publish.sh
Expand Up @@ -49,8 +49,12 @@ set -e
echo "Getting latest from upstream:$branch"
git pull upstream $branch
./reset.sh --hardcore --real-safari --chromedriver-install-all --chromedriver-version 2.10
npm cache clear appium
npm publish
version=$(cat package.json | $(npm bin)/underscore extract version | sed 's/\"//g')
npm cache clear appium
if [[ "$version" =~ "beta" ]]; then
npm publish --tag beta
else
npm publish
fi
git tag -a "v$version" -m "tag appium@$version for npm publish"
git push --tags upstream $branch

0 comments on commit 2f08520

Please sign in to comment.