Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion tools/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ apt-get -y install rsync
yarn

if test $TAG_NAME; then
export VERSION=$(echo $TAG_NAME | sed 's/^v\(.*\)$/\1/')
export VERSION=$TAG_NAME
else
export VERSION=$(npm version | head -n 1 | sed "s/^.*: '\([^']*\).*/\1/")-canary.$SHORT_SHA
fi
Expand Down
8 changes: 4 additions & 4 deletions tools/release.sh
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" > ~/.npmrc
cd dist/packages-dist

LATEST_TEST="^v[^-]*$"
PRODUCTION_TEST="^[^-]*$"

if test $TAG_NAME; then
if [[ ! $TAG_NAME =~ $LATEST_TEST ]]; then
npm publish . --tag next
else
if [[ $TAG_NAME =~ $PRODUCTION_TEST ]]; then
npm publish . &&
cd ../wrapper-dist &&
npm publish . &&
npm deprecate angularfire2 "AngularFire has moved, we're now @angular/fire"
else
npm publish . --tag next
fi
else
npm publish . --tag canary
Expand Down