We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent eab2718 commit 158241eCopy full SHA for 158241e
scripts/bower/publish.sh
@@ -96,8 +96,14 @@ function publish {
96
# don't publish every build to npm
97
if [ "${NEW_VERSION/+sha}" = "$NEW_VERSION" ] ; then
98
if [ "${NEW_VERSION/-}" = "$NEW_VERSION" ] ; then
99
- # publish releases as "latest"
100
- npm publish
+ if [[ $NEW_VERSION =~ ^1\.2\.[0-9]+$ ]] ; then
+ # publish 1.2.x releases with the appropriate tag
101
+ # this ensures that `npm install` by default will not grab `1.2.x` releases
102
+ npm publish --tag=1.2.x
103
+ else
104
+ # publish releases as "latest"
105
+ npm publish
106
+ fi
107
else
108
# publish prerelease builds with the beta tag
109
npm publish --tag=beta
0 commit comments