Skip to content

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

Lines changed: 2 additions & 2 deletions
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy