Skip to content

Commit 1fce6b9

Browse files
committed
Make npm canary version less sensitive to NPM version & fix sh syntax
1 parent 854b2d2 commit 1fce6b9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

publish.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ if test $NPM_TOKEN; then
1717
if test $TAG_NAME; then
1818
npm version $(echo $TAG_NAME | sed 's/^v\(.*\)$/\1/')
1919

20-
if [[ $TAG_NAME =~ $LATEST_TEST]]; then
20+
if [[ $TAG_NAME =~ $LATEST_TEST ]]; then
2121
NPM_TAG=latest
2222
else
2323
NPM_TAG=next
@@ -26,7 +26,7 @@ if test $NPM_TOKEN; then
2626
npm publish . --tag $NPM_TAG
2727
ret=$?
2828
else
29-
npm version $(npm version | sed -n "s/^ reactfire: '\(.*\)',/\1/p")-canary.$SHORT_SHA
29+
npm version $(npm version | sed -n "s/. reactfire: '\(.*\)',/\1/p")-canary.$SHORT_SHA
3030
npm publish . --tag canary
3131
ret=$?
3232
fi

0 commit comments

Comments
 (0)