Skip to content

Commit 26119c0

Browse files
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.
1 parent 927ebd9 commit 26119c0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/bower/publish.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ function init {
1414
TMP_DIR=$(resolveDir ../../tmp)
1515
BUILD_DIR=$(resolveDir ../../build)
1616
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")
1719
}
1820

1921

@@ -95,8 +97,6 @@ function publish {
9597

9698
# don't publish every build to npm
9799
if [ "${NEW_VERSION/+sha}" = "$NEW_VERSION" ] ; then
98-
# get the npm dist-tag from a custom property (distTag) in package.json
99-
DIST_TAG=$(readJsonProp "package.json" "distTag")
100100
echo "-- Publishing to npm as $DIST_TAG"
101101
npm publish --tag=$DIST_TAG
102102
fi

0 commit comments

Comments
 (0)