Created
May 25, 2020 21:40
-
-
Save janicduplessis/ff4a4540f4ca24a5f556544d4a676a2a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- name: Restore yarn workspaces | |
id: yarn-cache | |
uses: actions/cache@master | |
with: | |
path: | | |
node_modules | |
*/*/node_modules | |
key: ${{ runner.os }}-${{ hashFiles('**/yarn.lock') }} | |
- name: Install dependencies | |
if: steps.yarn-cache.outputs.cache-hit != 'true' | |
run: yarn install --no-progress --non-interactive | |
# If you use postinstall scripts you need to run them manually when using cache. | |
- name: Run postinstall if cached | |
if: steps.yarn-cache.outputs.cache-hit == 'true' | |
run: yarn postinstall |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment