Skip to content

Commit e22c8bb

Browse files
committed
Persis deploy files to circleci workspace
1 parent 33478f3 commit e22c8bb

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

.circleci/config.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,10 @@ jobs:
4949
name: Predeploy demo
5050
command: |
5151
yarn --cwd packages/react-renderer-demo/ create-deploy-files
52-
- store_artifacts:
53-
when: on_fail
54-
name: Uploading predeploy failure artifact to assist with debugging
55-
path: /home/circleci/.npm/_logs/*.log
52+
- persist_to_workspace:
53+
root: ~/react-forms
54+
paths:
55+
- packages/react-renderer-demo/dist/*
5656
deploy:
5757
working_directory: ~/react-forms
5858
docker:

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-
"create-deploy-files": "npm run build-public; npm run build-funcs; npm run build-app; npm run copy-deps",
12+
"create-deploy-files": "yarn build-public && yarn build-funcs && yarn build-app && yarn 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)