Skip to content

Commit 529571c

Browse files
authored
Merge pull request #220 from data-driven-forms/fix-deploy
Fix deploy
2 parents 5c97155 + aa47ab6 commit 529571c

File tree

4 files changed

+20544
-4
lines changed

4 files changed

+20544
-4
lines changed

.circleci/config.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,21 @@ jobs:
3838
command: |
3939
echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > ~/react-forms/.npmrc
4040
yarn release
41+
predeploy:
42+
working_directory: ~/react-forms
43+
docker:
44+
- image: circleci/node:10
45+
steps:
46+
- attach_workspace:
47+
at: ~/react-forms
48+
- run:
49+
name: Predeploy demo
50+
command: |
51+
yarn --cwd packages/react-renderer-demo/ predeploy
52+
- store_artifacts:
53+
when: on_fail
54+
name: Uploading predeploy failure artifact to assist with debugging
55+
path: /home/circleci/.npm/_logs/*.log
4156
deploy:
4257
working_directory: ~/react-forms
4358
docker:
@@ -53,12 +68,20 @@ jobs:
5368
name: Deploy demo
5469
command: |
5570
yarn --cwd packages/react-renderer-demo/ deploy --token=$FIREBASE_TOKEN
71+
- save_cache:
72+
key: dependency-cache-{{ checksum "yarn.lock" }}
73+
paths:
74+
- ~/react-forms/node_modules
75+
- ~/react-forms/packages/react-renderer-demo/dist/functions/next/cache
5676

5777
workflows:
5878
version: 2
5979
build_and_deploy:
6080
jobs:
6181
- build
82+
- predeploy:
83+
requires:
84+
- build
6285
- release:
6386
requires:
6487
- build
@@ -68,6 +91,7 @@ workflows:
6891
- deploy:
6992
requires:
7093
- build
94+
- predeploy
7195
filters:
7296
branches:
7397
only: master

.gitignore

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,6 @@ typings/
6464
# next.js build output
6565
.next
6666

67-
yarn.lock
68-
6967
packages/react-renderer-demo/public/vendor.css
7068

7169
# Firebase

packages/react-renderer-demo/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
"@material-ui/styles": "^4.5.2",
3030
"@mdx-js/loader": "^1.4.5",
3131
"@mdx-js/react": "^1.4.5",
32-
"@next/mdx": "^9.0.5",
32+
"@next/mdx": "^9.1.2",
3333
"@patternfly/patternfly-next": "^1.0.175",
3434
"@patternfly/react-core": "~3.16.10",
3535
"@patternfly/react-tokens": "^2.5.1",
@@ -38,7 +38,7 @@
3838
"firebase-admin": "^8.5.0",
3939
"firebase-functions": "^2.1.0",
4040
"grpc": "^1.22.2",
41-
"next": "^9.0.5",
41+
"next": "9.1.2",
4242
"patternfly-react": "^2.25.1",
4343
"prop-types": "^15.6.2",
4444
"raw-loader": "^3.1.0",

0 commit comments

Comments
 (0)