chore(bower/publish): move DIST_TAG so that it gets the correct value

In the position that DIST_TAG was being assigned it was trying to get the
`distTag` value from the wrong (i.e. a bower-...) repository.
This commit is contained in:
Peter Bacon Darwin
2015-09-16 23:09:21 +01:00
parent b94a47b1b5
commit a4c5fc0a8f
+2 -2
View File
@@ -27,6 +27,8 @@ function init {
angular-scenario
angular-touch
)
# get the npm dist-tag from a custom property (distTag) in package.json
DIST_TAG=$(readJsonProp "package.json" "distTag")
}
@@ -108,8 +110,6 @@ function publish {
# don't publish every build to npm
if [ "${NEW_VERSION/+sha}" = "$NEW_VERSION" ] ; then
# get the npm dist-tag from a custom property (distTag) in package.json
DIST_TAG=$(readJsonProp "package.json" "distTag")
echo "-- Publishing to npm as $DIST_TAG"
npm publish --tag=$DIST_TAG
fi