Skip to content

Commit e366f6c

Browse files
committed
Separate predeploy and deploy commands
1 parent 898aba3 commit e366f6c

File tree

2 files changed

+3
-15
lines changed

2 files changed

+3
-15
lines changed

.circleci/config.yml

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -48,34 +48,22 @@ jobs:
4848
- run:
4949
name: Predeploy demo
5050
command: |
51-
yarn --cwd packages/react-renderer-demo/ predeploy
51+
yarn --cwd packages/react-renderer-demo/ create-deploy-files
5252
- store_artifacts:
5353
when: on_fail
5454
name: Uploading predeploy failure artifact to assist with debugging
5555
path: /home/circleci/.npm/_logs/*.log
56-
- persist_to_workspace:
57-
root: ~/react-forms
58-
paths:
59-
- "*"
6056
deploy:
6157
working_directory: ~/react-forms
6258
docker:
6359
- image: circleci/node:10
6460
steps:
6561
- attach_workspace:
6662
at: ~/react-forms
67-
- run:
68-
name: 'Switch to correct folder'
69-
command: |
70-
cd ~/react-forms/packages/react-renderer-demo
71-
- run:
72-
name: Install Firebase Tools
73-
command: |
74-
npm install --prefix=./firebase-deploy firebase-tools
7563
- run:
7664
name: Deploy demo
7765
command: |
78-
~/react-forms/firebase-deploy/node_modules/.bin/firebase deploy --token=$FIREBASE_TOKEN
66+
yarn --cwd packages/react-renderer-demo/ deploy --token=$FIREBASE_TOKEN
7967
- save_cache:
8068
key: dependency-cache-{{ checksum "yarn.lock" }}
8169
paths:

packages/react-renderer-demo/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"dev": "next \"src/app/\"",
1010
"preserve": "npm run build-public && npm run build-funcs && npm run build-app && npm run copy-deps && npm run install-deps",
1111
"serve": "cross-env NODE_ENV=production firebase serve",
12-
"predeploy": "npm run build-public && npm run build-funcs && npm run build-app && npm run copy-deps",
12+
"create-deploy-files": "npm run build-public; npm run build-funcs; npm run build-app; npm run copy-deps",
1313
"deploy": "NODE_ENV=production firebase deploy",
1414
"clean": "rimraf \"dist/functions/**\" && rimraf \"dist/public\"",
1515
"build-public": "cpx \"src/public/**/*.*\" \"dist/public\" -C",

0 commit comments

Comments
 (0)