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
3
3
yarn
4
4
5
5
if test $TAG_NAME ; then
6
- export VERSION=$( echo $ TAG_NAME | sed ' s/^v\(.*\)$/\1/ ' )
6
+ export VERSION=$TAG_NAME
7
7
else
8
8
export VERSION=$( npm version | head -n 1 | sed " s/^.*: '\([^']*\).*/\1/" ) -canary.$SHORT_SHA
9
9
fi
Original file line number Diff line number Diff line change 1
1
echo " //registry.npmjs.org/:_authToken=$NPM_TOKEN " > ~ /.npmrc
2
2
cd dist/packages-dist
3
3
4
- LATEST_TEST =" ^v [^-]*$"
4
+ PRODUCTION_TEST =" ^[^-]*$"
5
5
6
6
if 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
10
8
npm publish . &&
11
9
cd ../wrapper-dist &&
12
10
npm publish . &&
13
11
npm deprecate angularfire2 " AngularFire has moved, we're now @angular/fire"
12
+ else
13
+ npm publish . --tag next
14
14
fi
15
15
else
16
16
npm publish . --tag canary
You can’t perform that action at this time.
0 commit comments