Skip to content

Commit f4f7173

Browse files
committed
Make CircleCI flow Yarn based
1 parent a4d3d71 commit f4f7173

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

.circleci/config.yml

+12-4
Original file line numberDiff line numberDiff line change
@@ -51,15 +51,23 @@ jobs:
5151
- checkout
5252
- restore_cache:
5353
keys:
54-
- dependencies-cache-{{ checksum "package.json" }}
54+
- dependencies-cache-{{ checksum "yarn.lock" }}
5555
- dependencies-cache-
56+
- run:
57+
name: Install yarn
58+
command: >
59+
sudo apt-get install apt-transport-https &&
60+
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add - &&
61+
echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list &&
62+
sudo apt-get update &&
63+
sudo apt-get install --no-install-recommends yarn
5664
- run:
5765
name: Install dependencies
58-
command: npm install --no-save
66+
command: yarn
5967
- save_cache:
60-
key: dependency-cache-{{ checksum "package.json" }}
68+
key: dependency-cache-{{ checksum "yarn.lock" }}
6169
paths:
62-
- node_modules
70+
- ~/.cache/yarn
6371
- persist_to_workspace:
6472
root: .
6573
paths: node_modules

0 commit comments

Comments
 (0)