mirror of
https://github.com/zhigang1992/create-react-app.git
synced 2026-04-22 11:57:27 +08:00
Use Yarn cache for Travis (#4774)
* support scoped packages for cra --scripts-version option * cache yarn * only cache yarn * also cache .npm
This commit is contained in:
@@ -5,10 +5,9 @@ node_js:
|
||||
- 8
|
||||
- 10
|
||||
cache:
|
||||
yarn: true
|
||||
directories:
|
||||
- node_modules
|
||||
- packages/create-react-app/node_modules
|
||||
- packages/react-scripts/node_modules
|
||||
- .npm
|
||||
before_install:
|
||||
- curl -o- -L https://yarnpkg.com/install.sh | bash
|
||||
- export PATH="$HOME/.yarn/bin:$PATH"
|
||||
|
||||
Reference in New Issue
Block a user