Canary and next builds

This commit is contained in:
James Daniels
2019-05-15 11:40:21 -07:00
parent 94446a784a
commit b64e2484d9
4 changed files with 13 additions and 5 deletions

View File

@@ -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']

View File

@@ -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": {

View File

@@ -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"
}
}

View File

@@ -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",