diff --git a/.circleci/config.yml b/.circleci/config.yml index b70526e..9fabbd8 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -2,11 +2,16 @@ version: 2.1 jobs: build: - docker: + docker: - image: cimg/node:14.10.1 - auth: - username: mydockerhub-user - password: $DOCKERHUB_PASSWORD steps: - checkout + - restore_cache: + key: npm-v2-dependencies-{{ checksum "yarn.lock" }} + - run: yarn global add node-gyp && yarn install + + - save_cache: + key: npm-v2-dependencies-{{ checksum "yarn.lock" }} + paths: + - ./node_modules