Skip to content

Commit

Permalink
added cache management steps
Browse files Browse the repository at this point in the history
  • Loading branch information
GhitaNektt committed May 28, 2024
1 parent cf36c51 commit b166510
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions .github/workflows/storybook-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,21 @@ jobs:
version: 8.10.0
run_install: false

- name: Clear pnpm store cache
run: pnpm store prune
- name: Cache pnpm store
uses: actions/cache@v3
with:
path: ~/.pnpm-store
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Cache node_modules
uses: actions/cache@v3
with:
path: packages/alto/node_modules
key: ${{ runner.os }}-node_modules-${{ hashFiles('packages/alto/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-node_modules-
- name: Install dependencies
run: pnpm install --no-frozen-lockfile
Expand Down

0 comments on commit b166510

Please sign in to comment.