Skip to content

Commit

Permalink
ci(circle): cache dependencies [ch2770]
Browse files Browse the repository at this point in the history
  • Loading branch information
exactlyaron committed Oct 23, 2020
1 parent d27dd28 commit 5b31844
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,21 @@ jobs:
docker:
- image: cimg/node:lts
environment:
TZ: "Europe/London"
TZ: "Europe/London"
working_directory: ~/repo
steps:
- checkout
- restore_cache:
keys:
- v1-deps-{{ checksum "package.json" }}
- v1-deps-
- run:
name: install
command: npm install
- save_cache:
key: v1-deps-{{ checksum "package.json" }}
paths:
- node_modules
- run:
name: test
command: npm test
Expand All @@ -37,9 +45,17 @@ jobs:
working_directory: ~/repo
steps:
- checkout
- restore_cache:
keys:
- v1-deps-{{ checksum "package.json" }}
- v1-deps-
- run:
name: install
command: npm install
- save_cache:
key: v1-deps-{{ checksum "package.json" }}
paths:
- node_modules
- run:
name: release
command: |
Expand Down

0 comments on commit 5b31844

Please sign in to comment.