|
|
@ -71,6 +71,23 @@ jobs: |
|
|
- node_modules |
|
|
- node_modules |
|
|
key: v1-dependencies-{{ checksum "package.json" }} |
|
|
key: v1-dependencies-{{ checksum "package.json" }} |
|
|
|
|
|
|
|
|
|
|
|
deploy: |
|
|
|
|
|
docker: |
|
|
|
|
|
- image: circleci/node:dubnium-browsers |
|
|
|
|
|
working_directory: ~/repo |
|
|
|
|
|
steps: |
|
|
|
|
|
- checkout |
|
|
|
|
|
- attach_workspace: |
|
|
|
|
|
at: /tmp |
|
|
|
|
|
- restore_cache: |
|
|
|
|
|
keys: |
|
|
|
|
|
- v1-dependencies-{{ checksum "package.json" }} |
|
|
|
|
|
# fallback to using the latest cache if no exact match is found |
|
|
|
|
|
- v1-dependencies- |
|
|
|
|
|
- run: |
|
|
|
|
|
name: Deploy app |
|
|
|
|
|
command: npx netlify-cli deploy --auth $NETLIFY_AUTH_TOKEN --site $NETLIFY_SITE_ID --dir /tmp/server --prod |
|
|
|
|
|
|
|
|
workflows: |
|
|
workflows: |
|
|
version: 2 |
|
|
version: 2 |
|
|
build-test-and-deploy: |
|
|
build-test-and-deploy: |
|
|
@ -78,4 +95,7 @@ workflows: |
|
|
- install |
|
|
- install |
|
|
- build: |
|
|
- build: |
|
|
requires: |
|
|
requires: |
|
|
- install |
|
|
|
|
|
|
|
|
- install |
|
|
|
|
|
- deploy: |
|
|
|
|
|
requires: |
|
|
|
|
|
- build |