No tagging during publishing for now.

This commit is contained in:
baldo 2016-06-20 22:49:03 +02:00
parent 8dbec7612b
commit 7778ca9648

View file

@ -25,18 +25,13 @@ function confirm() {
cd $(dirname $0) cd $(dirname $0)
version=$(grep '^ *"version": *"[^"]*" *, *$' package.json | cut -d '"' -f4) version=$(grep '^ *"version": *"[^"]*" *, *$' package.json | cut -d '"' -f4)
npm_tag=$1
if [ -z "$version" ]; then if [ -z "$version" ]; then
echo "Could not determine current version." echo "Could not determine current version."
exit 1 exit 1
fi fi
if [ -z "$npm_tag" ]; then echo "Current version: $version"
npm_tag=latest
fi
echo "Current version: $version#$npm_tag"
if [[ $version =~ 'SNAPSHOT' ]]; then if [[ $version =~ 'SNAPSHOT' ]]; then
echo "Will not publish SNAPSHOT version." echo "Will not publish SNAPSHOT version."
@ -49,6 +44,6 @@ if confirm "Continue publishing?"; then
./node_modules/.bin/grunt clean build ./node_modules/.bin/grunt clean build
cd dist cd dist
npm publish -t $npm_tag npm publish
fi fi