mirror of
https://github.com/zhigang1992/reactfire.git
synced 2026-06-19 18:23:57 +08:00
Canary and next builds
This commit is contained in:
@@ -9,13 +9,21 @@ steps:
|
||||
args: ['test']
|
||||
- name: 'gcr.io/cloud-builders/npm'
|
||||
dir: 'reactfire'
|
||||
args: ['publish']
|
||||
entrypoint: 'sh'
|
||||
env:
|
||||
- 'SHORT_SHA=$SHORT_SHA'
|
||||
- 'TAG_NAME=$TAG_NAME'
|
||||
args:
|
||||
- -c
|
||||
- |
|
||||
echo "//registry.npmjs.org/:_authToken=$$NPM_TOKEN" > .npmrc
|
||||
npm publish . --tag exp
|
||||
if test $TAG_NAME; then
|
||||
npm version $TAG_NAME
|
||||
npm publish . --tag next
|
||||
else
|
||||
npm version $(npm view reactfire-exp version)-canary.$SHORT_SHA
|
||||
npm publish . --tag canary
|
||||
fi
|
||||
rm -f .npmrc
|
||||
secretEnv: ['NPM_TOKEN']
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "reactfire-exp",
|
||||
"version": "2.0.0-exp.1",
|
||||
"version": "0.0.0",
|
||||
"description": "Firebase library for React",
|
||||
"main": "index.js",
|
||||
"scripts": {
|
||||
|
||||
@@ -25,6 +25,6 @@
|
||||
"firebase-admin": "^7.3.0",
|
||||
"react": "^16.8.6",
|
||||
"react-dom": "^16.8.6",
|
||||
"reactfire-exp": ">= 2.0.0-exp.1"
|
||||
"reactfire-exp": "0.0.0"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
"react-dom": "^16.8.6",
|
||||
"react-firebaseui": "^3.1.2",
|
||||
"react-scripts": "3.0.0",
|
||||
"reactfire-exp": ">= 2.0.0-exp.1"
|
||||
"reactfire-exp": "0.0.0"
|
||||
},
|
||||
"scripts": {
|
||||
"start": "react-scripts start",
|
||||
|
||||
Reference in New Issue
Block a user