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 aa43e55 commit 71782d7
Showing 1 changed file with 26 additions and 12 deletions.
38 changes: 26 additions & 12 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,23 @@ version: 2
jobs:
unit test:
docker:
# use node:lts
- image: cimg/node:lts
environment:
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 @@ -32,19 +39,26 @@ jobs:
command: npm run lint
release:
docker:
# use node:lts
- image: cimg/node:lts
environment:
TZ: "Europe/London"
- image: cimg/node:lts
environment:
TZ: "Europe/London"
working_directory: ~/repo
steps:
- checkout
- run:
name: install
command: npm install
- run:
name: release
command: npx semantic-release
- 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: npx semantic-release
workflows:
version: 2
test_and_release:
Expand Down

0 comments on commit 71782d7

Please sign in to comment.