Yield generated for 720aade5-f0f2-4f91-ad92-8e942d5caa90
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

38 lines
889 B

version: 2.1
jobs:
yarn-install-build:
docker:
- image: "circleci/node:12"
steps:
- checkout
- restore_cache:
key: npm-v2-dependencies-{{ checksum "yarn.lock" }}
- run: yarn global add node-gyp && yarn install
- run: yarn build
- save_cache:
key: npm-v2-dependencies-{{ checksum "yarn.lock" }}
paths:
- ./node_modules
server-deploy:
docker:
- image: circleci/node:dubnium-browsers
working_directory: ~/deploy-doc-server
steps:
- attach_workspace:
at: /tmp
- run:
name: Deploy app
command: sudo npm install -g --silent netlify-cli
netlify deploy --prod --auth $NETLIFY_AUTH_TOKEN
workflows:
node-tests:
jobs:
- yarn-install-build
- server-deploy:
requires:
- yarn-install-build