-
-
Save khadorkin/8613c5632f8c83c40b182da0720fe1d2 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