Skip to content

Commit a4c5fc0

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 b94a47b commit a4c5fc0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/bower/publish.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ function init {
2727
angular-scenario
2828
angular-touch
2929
)
30+
# get the npm dist-tag from a custom property (distTag) in package.json
31+
DIST_TAG=$(readJsonProp "package.json" "distTag")
3032
}
3133

3234

@@ -108,8 +110,6 @@ function publish {
108110

109111
# don't publish every build to npm
110112
if [ "${NEW_VERSION/+sha}" = "$NEW_VERSION" ] ; then
111-
# get the npm dist-tag from a custom property (distTag) in package.json
112-
DIST_TAG=$(readJsonProp "package.json" "distTag")
113113
echo "-- Publishing to npm as $DIST_TAG"
114114
npm publish --tag=$DIST_TAG
115115
fi

0 commit comments

Comments
 (0)