We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 84bf883 commit 17d8a52Copy full SHA for 17d8a52
scripts/bower/publish.sh
@@ -88,6 +88,24 @@ function publish {
88
cd $TMP_DIR/bower-$repo
89
git push origin master
90
git push origin v$NEW_VERSION
91
+
92
+ # don't publish every build to npm
93
+ if [ "${NEW_VERSION/+sha}" = "$NEW_VERSION" ] ; then
94
+ if [ "${NEW_VERSION/-}" = "$NEW_VERSION" ] ; then
95
+ if [[ $NEW_VERSION =~ ^1\.2\.[0-9]+$ ]] ; then
96
+ # publish 1.2.x releases with the appropriate tag
97
+ # this ensures that `npm install` by default will not grab `1.2.x` releases
98
+ npm publish --tag=1.2.x
99
+ else
100
+ # publish releases as "latest"
101
+ npm publish
102
+ fi
103
104
+ # publish prerelease builds with the beta tag
105
+ npm publish --tag=beta
106
107
108
109
cd $SCRIPT_DIR
110
done
111
}
0 commit comments