Skip to content

Instantly share code, notes, and snippets.

@janicduplessis
Created May 25, 2020 21:40
Show Gist options
  • Star 11 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save janicduplessis/ff4a4540f4ca24a5f556544d4a676a2a to your computer and use it in GitHub Desktop.
Save janicduplessis/ff4a4540f4ca24a5f556544d4a676a2a to your computer and use it in GitHub Desktop.
- 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