Skip to content

Commit

Permalink
feat(ci): cache release dependencies (#5834)
Browse files Browse the repository at this point in the history
  • Loading branch information
juice49 authored Mar 4, 2024
1 parent eb5cd50 commit 75ac3cf
Showing 1 changed file with 22 additions and 1 deletion.
23 changes: 22 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,28 @@ jobs:
uses: pnpm/action-setup@v3
with:
version: 8
run_install: true
run_install: false

- name: Get pnpm store directory
id: pnpm-cache
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
- name: Cache dependencies
uses: actions/cache@v4
env:
cache-name: cache-node-modules
with:
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ env.cache-name }}-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
v1-${{ runner.os }}-pnpm-store-${{ env.cache-name }}-
v1-${{ runner.os }}-pnpm-store-
v1-${{ runner.os }}-
- name: Install dependencies
run: pnpm install

- name: Pre-flight
run: |
Expand Down

0 comments on commit 75ac3cf

Please sign in to comment.