Skip to content

Commit 5254ffe

Browse files
Jack ZhaoTimer
Jack Zhao
authored andcommitted
Use Yarn cache for Travis (#4774)
* support scoped packages for cra --scripts-version option * cache yarn * only cache yarn * also cache .npm
1 parent ca2e9f0 commit 5254ffe

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

.travis.yml

+2-3
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,9 @@ node_js:
55
- 8
66
- 10
77
cache:
8+
yarn: true
89
directories:
9-
- node_modules
10-
- packages/create-react-app/node_modules
11-
- packages/react-scripts/node_modules
10+
- .npm
1211
before_install:
1312
- curl -o- -L https://yarnpkg.com/install.sh | bash
1413
- export PATH="$HOME/.yarn/bin:$PATH"

0 commit comments

Comments
 (0)