File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ apt-get -y install rsync
33yarn
44
55if test $TAG_NAME ; then
6- export VERSION=$( echo $ TAG_NAME | sed ' s/^v\(.*\)$/\1/ ' )
6+ export VERSION=$TAG_NAME
77else
88 export VERSION=$( npm version | head -n 1 | sed " s/^.*: '\([^']*\).*/\1/" ) -canary.$SHORT_SHA
99fi
Original file line number Diff line number Diff line change 11echo " //registry.npmjs.org/:_authToken=$NPM_TOKEN " > ~ /.npmrc
22cd dist/packages-dist
33
4- LATEST_TEST =" ^v [^-]*$"
4+ PRODUCTION_TEST =" ^[^-]*$"
55
66if test $TAG_NAME ; then
7- if [[ ! $TAG_NAME =~ $LATEST_TEST ]]; then
8- npm publish . --tag next
9- else
7+ if [[ $TAG_NAME =~ $PRODUCTION_TEST ]]; then
108 npm publish . &&
119 cd ../wrapper-dist &&
1210 npm publish . &&
1311 npm deprecate angularfire2 " AngularFire has moved, we're now @angular/fire"
12+ else
13+ npm publish . --tag next
1414 fi
1515else
1616 npm publish . --tag canary
You can’t perform that action at this time.
0 commit comments