Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit b1f46bb

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 3a6bf0d commit b1f46bb

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
@@ -29,6 +29,8 @@ function init {
2929
angular-touch
3030
angular-messages
3131
)
32+
# get the npm dist-tag from a custom property (distTag) in package.json
33+
DIST_TAG=$(readJsonProp "package.json" "distTag")
3234
}
3335

3436

@@ -110,8 +112,6 @@ function publish {
110112

111113
# don't publish every build to npm
112114
if [ "${NEW_VERSION/+sha}" = "$NEW_VERSION" ] ; then
113-
# get the npm dist-tag from a custom property (distTag) in package.json
114-
DIST_TAG=$(readJsonProp "package.json" "distTag")
115115
echo "-- Publishing to npm as $DIST_TAG"
116116
npm publish --tag=$DIST_TAG
117117
fi

0 commit comments

Comments
 (0)