We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3a6bf0d commit b1f46bbCopy full SHA for b1f46bb
scripts/bower/publish.sh
@@ -29,6 +29,8 @@ function init {
29
angular-touch
30
angular-messages
31
)
32
+ # get the npm dist-tag from a custom property (distTag) in package.json
33
+ DIST_TAG=$(readJsonProp "package.json" "distTag")
34
}
35
36
@@ -110,8 +112,6 @@ function publish {
110
112
111
113
# don't publish every build to npm
114
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")
115
echo "-- Publishing to npm as $DIST_TAG"
116
npm publish --tag=$DIST_TAG
117
fi
0 commit comments