Skip to content

Commit 77db77e

Browse files
authored
chore(CI): enable caching of node_modules for faster builds (#253)
1 parent 529dcf9 commit 77db77e

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

.circleci/config.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,21 @@ commands:
1616
type: string
1717
default: ""
1818
steps:
19+
- restore_cache:
20+
name: Restore Yarn Package Cache for << parameters.path >>
21+
keys:
22+
- yarn-packages-{{ checksum "<< parameters.path >>/yarn.lock" }}
1923
- run:
2024
name: "Building << parameters.path >>"
2125
command: |
2226
cd "<< parameters.path >>"
2327
yarn
2428
yarn build
29+
- save_cache:
30+
name: Save Yarn Package Cache for << parameters.path >>
31+
key: yarn-packages-{{ checksum "<< parameters.path >>/yarn.lock" }}
32+
paths:
33+
- ./<< parameters.path >>/node_modules
2534
jobs:
2635
build_angular_projects:
2736
executor: node14

0 commit comments

Comments
 (0)