-
Notifications
You must be signed in to change notification settings - Fork 273
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(ci): only do clean install from package-lock
- Loading branch information
Showing
1 changed file
with
5 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 [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: | | ||
|