We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 927ebd9 commit 26119c0Copy full SHA for 26119c0
scripts/bower/publish.sh
@@ -14,6 +14,8 @@ function init {
14
TMP_DIR=$(resolveDir ../../tmp)
15
BUILD_DIR=$(resolveDir ../../build)
16
NEW_VERSION=$(cat $BUILD_DIR/version.txt)
17
+ # get the npm dist-tag from a custom property (distTag) in package.json
18
+ DIST_TAG=$(readJsonProp "package.json" "distTag")
19
}
20
21
@@ -95,8 +97,6 @@ function publish {
95
97
96
98
# don't publish every build to npm
99
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")
100
echo "-- Publishing to npm as $DIST_TAG"
101
npm publish --tag=$DIST_TAG
102
fi
0 commit comments