Skip to content

Commit

Permalink
fix(ci): only do clean install from package-lock
Browse files Browse the repository at this point in the history
  • Loading branch information
edvald committed Jun 13, 2018
1 parent e664d28 commit 3c44191
Showing 1 changed file with 5 additions and 12 deletions.
17 changes: 5 additions & 12 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 [email protected]

- 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: |
Expand Down

0 comments on commit 3c44191

Please sign in to comment.