From 3c44191ea820b6c57dffb4abb8204374fecb1ec0 Mon Sep 17 00:00:00 2001 From: Jon Edvald Date: Wed, 13 Jun 2018 23:53:53 +0200 Subject: [PATCH] fix(ci): only do clean install from package-lock --- .circleci/config.yml | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 9615614674..139a87a2a3 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -7,7 +7,7 @@ jobs: build: docker: # specify the version you desire here - - image: circleci/node:9 + - image: circleci/node:10 # Specify service dependencies here if necessary # CircleCI maintains a library of pre-built images @@ -34,22 +34,15 @@ jobs: # Download and cache dependencies - restore_cache: keys: - - v2-dependencies-{{ checksum "package-lock.json" }} - # fallback to using the latest cache if no exact match is found - - v2-dependencies- + - v3-dependencies-{{ checksum "package-lock.json" }} - # pin npm version to avoid conflicts with package-lock.json - - run: sudo npm install -g npm@6.1 - - - run: npm install - - # make sure package lock is up to date - - run: npm run check-package-lock + # install using package-lock only + - run: npm ci - save_cache: paths: - node_modules - key: v2-dependencies-{{ checksum "package-lock.json" }} + key: v3-dependencies-{{ checksum "package-lock.json" }} # a couple of special cases needed just for local builds - run: |