Fix build
This commit is contained in:
parent
95c2634a50
commit
ee21a6101a
@ -1,4 +1,5 @@
|
|||||||
version: 2
|
version: 2
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
docker:
|
docker:
|
||||||
@ -9,55 +10,56 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- checkout
|
- checkout
|
||||||
|
|
||||||
- restore_cache:
|
- restore_cache:
|
||||||
keys:
|
keys:
|
||||||
- v1-dependencies-{{ checksum "package.json" }}
|
- v1-dependencies-{{ checksum "package.json" }}
|
||||||
- v1-dependencies-
|
- v1-dependencies-
|
||||||
|
|
||||||
- run:
|
- run:
|
||||||
name: Install Dependancies
|
name: Install Dependancies
|
||||||
command: yarn
|
command: yarn
|
||||||
|
|
||||||
- save_cache:
|
- save_cache:
|
||||||
key: v1-dependencies-{{ checksum "package.json" }}
|
key: v1-dependencies-{{ checksum "package.json" }}
|
||||||
paths: node_modules
|
paths: node_modules
|
||||||
|
|
||||||
- run:
|
- run:
|
||||||
name: Build
|
name: Build
|
||||||
command: yarn build
|
command: yarn build
|
||||||
|
|
||||||
- run:
|
- run:
|
||||||
name: Deploy
|
name: Deploy
|
||||||
command: yarn firebase deploy --token "${FIREBASE_TOKEN} --only hosting"
|
command: yarn firebase deploy --token "${FIREBASE_TOKEN} --only hosting"
|
||||||
|
|
||||||
deploy:
|
deploy_functions:
|
||||||
docker:
|
docker:
|
||||||
- image: circleci/node:10.4-browsers
|
- image: circleci/node:10.4-browsers
|
||||||
|
|
||||||
working_directory: ~/repo/functions
|
working_directory: ~/repo/functions
|
||||||
|
|
||||||
stesp:
|
steps:
|
||||||
- checkout
|
- checkout
|
||||||
|
|
||||||
- restore_cache:
|
- restore_cache:
|
||||||
keys:
|
keys:
|
||||||
- v1-dependencies-{{ checksum "package.json" }}
|
- v1-dependencies-{{ checksum "package.json" }}
|
||||||
- v1-dependencies-
|
- v1-dependencies-
|
||||||
|
|
||||||
- run:
|
- run:
|
||||||
name: Install Dependancies
|
name: Install Dependancies
|
||||||
command: yarn
|
command: yarn
|
||||||
|
|
||||||
- save_cache:
|
- save_cache:
|
||||||
key: v1-dependencies-{{ checksum "package.json" }}
|
key: v1-dependencies-{{ checksum "package.json" }}
|
||||||
paths: node_modules
|
paths: node_modules
|
||||||
|
|
||||||
- run:
|
- run:
|
||||||
name: Deploy
|
name: Deploy
|
||||||
command: yarn firebase deploy --token "${FIREBASE_TOKEN}" --only functions
|
command: yarn firebase deploy --token "${FIREBASE_TOKEN}" --only functions
|
||||||
|
|
||||||
workflows:
|
workflows:
|
||||||
version: 2
|
version: 2
|
||||||
|
|
||||||
build_and_deply:
|
build_and_deply:
|
||||||
jobs:
|
jobs:
|
||||||
- build
|
- build
|
||||||
|
Loading…
Reference in New Issue
Block a user