File tree Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -4,8 +4,8 @@ TAG_TEST="^refs/tags/v.+$"
44if [[ $GITHUB_REF =~ $TAG_TEST ]]; then
55 OVERRIDE_VERSION=${GITHUB_REF/ refs\/ tags\/ v/ }
66else
7- OVERRIDE_VERSION=$( npm version | sed -n " s/. reactfire: '\(.*\)',/\1/p " ) -canary.$SHORT_SHA
7+ OVERRIDE_VERSION=$( node -e " console.log(require('./package.json').version) " ) -canary.$SHORT_SHA
88fi ;
99
1010npm --no-git-tag-version --allow-same-version -f version $OVERRIDE_VERSION
11- yarn build && mv $( npm pack . | tail -n 1) reactfire.tgz
11+ yarn build && mv $( npm pack . | tail -n 1) reactfire.tgz
Original file line number Diff line number Diff line change 11LATEST_TEST=" ^[^-]*$"
22CANARY_TEST=" -canary."
33
4- NPM_VERSION=$( npm version | sed -n " s/. reactfire: '\(.*\)',/\1/p " )
4+ NPM_VERSION=$( npm view ./reactfire- $GITHUB_RUN_ID / reactfire.tgz version )
55
66if [[ $NPM_VERSION =~ $LATEST_TEST ]]; then
77 NPM_TAG=latest
88elif [[ $NPM_VERSION =~ $CANARY_TEST ]]; then
99 NPM_TAG=canary
1010else
11- NPM_TAG=next
11+ # TODO once we hit 3.0.0 move this back to next
12+ NPM_TAG=latest
1213fi ;
1314
14- npm publish ./reactfire-$GITHUB_RUN_ID /reactfire.tgz --tag $NPM_TAG
15+ echo " Publishing to NPM @$NPM_TAG "
16+ npm publish ./reactfire-$GITHUB_RUN_ID /reactfire.tgz --tag $NPM_TAG
You can’t perform that action at this time.
0 commit comments