Commit 5254ffeb authored by Jack Zhao's avatar Jack Zhao Committed by Joe Haddad
Browse files

Use Yarn cache for Travis (#4774)

* support scoped packages for cra --scripts-version option

* cache yarn

* only cache yarn

* also cache .npm
parent ca2e9f0f
Showing with 2 additions and 3 deletions
+2 -3
...@@ -5,10 +5,9 @@ node_js: ...@@ -5,10 +5,9 @@ node_js:
- 8 - 8
- 10 - 10
cache: cache:
yarn: true
directories: directories:
- node_modules - .npm
- packages/create-react-app/node_modules
- packages/react-scripts/node_modules
before_install: before_install:
- curl -o- -L https://yarnpkg.com/install.sh | bash - curl -o- -L https://yarnpkg.com/install.sh | bash
- export PATH="$HOME/.yarn/bin:$PATH" - export PATH="$HOME/.yarn/bin:$PATH"
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment