Merge pull request #1763 from h3poteto/fix/yarn

Use yarn.lock to generate cache key in circleci
This commit is contained in:
AkiraFukushima 2020-09-13 16:51:38 +09:00 committed by GitHub
commit 789cccf643
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -14,13 +14,13 @@ jobs:
- restore_cache:
name: Restoring cache - node_modules
keys:
- node_modules-{{ arch }}-node12.13.1-{{ checksum "package.json" }}-{{ checksum "package-lock.json" }}
- node_modules-{{ arch }}-node12.13.1-{{ checksum "package.json" }}-{{ checksum "yarn.lock" }}
- run:
name: Install packages
command: npm install
- save_cache:
name: Saving cache - node_modules
key: node_modules-{{ arch }}-node12.13.1-{{ checksum "package.json" }}-{{ checksum "package-lock.json" }}
key: node_modules-{{ arch }}-node12.13.1-{{ checksum "package.json" }}-{{ checksum "yarn.lock" }}
paths:
- node_modules
- run: