Files
medusa-store/.github/actions/cache-deps/action.yml
2024-05-07 12:48:49 +02:00

23 lines
630 B
YAML

name: cache-deps
description: Creates a cache with the given extension for monorepo dependencies
inputs:
extension:
description: Extension for cache name
runs:
using: composite
steps:
- uses: actions/cache@v3
id: cache
with:
path: |
.yarn/cache
key: ${{ runner.os }}-yarn-${{inputs.extension}}-v8-${{ hashFiles('**/yarn.lock') }}-3
restore-keys: |
${{ runner.os }}-yarn-${{inputs.extension}}-v8-3
# We want to only bootstrap and install if no cache is found.
- run: yarn install --immutable
shell: bash
- run: yarn build
shell: bash