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.
37 lines
873 B
37 lines
873 B
version: 2.1
|
|
|
|
jobs:
|
|
yarn:
|
|
docker:
|
|
- image: cimg/node:12.18
|
|
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
|
|
- server-deploy:
|
|
requires:
|
|
- yarn
|