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 b94a47b commit a4c5fc0Copy full SHA for a4c5fc0
scripts/bower/publish.sh
@@ -27,6 +27,8 @@ function init {
27
angular-scenario
28
angular-touch
29
)
30
+ # get the npm dist-tag from a custom property (distTag) in package.json
31
+ DIST_TAG=$(readJsonProp "package.json" "distTag")
32
}
33
34
@@ -108,8 +110,6 @@ function publish {
108
110
109
111
# don't publish every build to npm
112
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")
113
echo "-- Publishing to npm as $DIST_TAG"
114
npm publish --tag=$DIST_TAG
115
fi
0 commit comments