Skip to content

Commit d11eada

Browse files
authored
chore(build): we aren't prefixing tags with 'v' (#2216)
1 parent ca43c8b commit d11eada

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

tools/build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ apt-get -y install rsync
33
yarn
44

55
if test $TAG_NAME; then
6-
export VERSION=$(echo $TAG_NAME | sed 's/^v\(.*\)$/\1/')
6+
export VERSION=$TAG_NAME
77
else
88
export VERSION=$(npm version | head -n 1 | sed "s/^.*: '\([^']*\).*/\1/")-canary.$SHORT_SHA
99
fi

tools/release.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" > ~/.npmrc
22
cd dist/packages-dist
33

4-
LATEST_TEST="^v[^-]*$"
4+
PRODUCTION_TEST="^[^-]*$"
55

66
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
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
1515
else
1616
npm publish . --tag canary

0 commit comments

Comments
 (0)