Browse Source

💚 : config file

main
Chiara 5 years ago
parent
commit
659b1a526a
  1. 35
      .circleci/config.yml

35
.circleci/config.yml

@ -0,0 +1,35 @@
version: 2.1
jobs:
yarn-install-build:
docker:
- image: "circleci/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-install-build
- server-deploy:
requires:
- yarn-install-build
Loading…
Cancel
Save