This repository was archived by the owner on Apr 12, 2024. It is now read-only.
File tree 2 files changed +5
-13
lines changed
2 files changed +5
-13
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " angularjs" ,
3
3
"branchVersion" : " 1.2.*" ,
4
+ "distTag" : " ie8_compat" ,
4
5
"repository" : {
5
6
"type" : " git" ,
6
7
"url" : " https://github.com/angular/angular.js.git"
Original file line number Diff line number Diff line change @@ -108,19 +108,10 @@ function publish {
108
108
109
109
# don't publish every build to npm
110
110
if [ " ${NEW_VERSION/ +sha} " = " $NEW_VERSION " ] ; then
111
- if [ " ${NEW_VERSION/ -} " = " $NEW_VERSION " ] ; then
112
- if [[ $NEW_VERSION =~ ^1\. 2\. [0-9]+$ ]] ; then
113
- # publish 1.2.x releases with the appropriate tag
114
- # this ensures that `npm install` by default will not grab `1.2.x` releases
115
- npm publish --tag=old
116
- else
117
- # publish releases as "latest"
118
- npm publish
119
- fi
120
- else
121
- # publish prerelease builds with the beta tag
122
- npm publish --tag=beta
123
- fi
111
+ # get the npm dist-tag from a custom property (distTag) in package.json
112
+ DIST_TAG=$( readJsonProp " package.json" " distTag" )
113
+ echo " -- Publishing to npm as $DIST_TAG "
114
+ npm publish --tag=$DIST_TAG
124
115
fi
125
116
126
117
cd $SCRIPT_DIR
You can’t perform that action at this time.
0 commit comments