diff --git a/.circleci/config.yml b/.circleci/config.yml index 6daa894..0500248 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -53,12 +53,21 @@ jobs: - image: circleci/node:dubnium-browsers working_directory: ~/repo steps: + - checkout + - restore_cache: + keys: + - dependencies-{{ checksum "package.json" }}-{{ .Environment.CACHE_VERSION }} + # fallback to using the latest cache if no exact match is found + - dependencies- - attach_workspace: at: /tmp - run: name: Deploy app - command: sudo npm install netlify-cli -g && netlify deploy --site $NETLIFY_SITE_ID --auth $NETLIFLY_DEVOPSFINAL_TOKEN --prod -dir=/tmp/server - + command: sudo npm netlify deploy --site $NETLIFY_SITE_ID --auth $NETLIFLY_DEVOPSFINAL_TOKEN --prod -dir=/tmp/server + - save_cache: + paths: + - node_modules + key: v1-dependencies-{{ checksum "package.json" }} workflows: version: 2 build-deploy: