Skip to content

Commit

Permalink
feat: Cache pnpm store for prod deployment pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
fastner committed Jul 23, 2024
1 parent dceef1c commit 068f953
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion .github/workflows/github-actions-prod-deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,21 @@ jobs:
- uses: actions/setup-node@v4
with:
node-version: 20
cache: 'pnpm'
- run: corepack enable
- run: pnpm store path
id: store-path
- name: Cache pnpm modules
id: cache-npm
uses: actions/cache@v3
env:
cache-name: cache-pnpm-modules
with:
# npm cache files are stored in `~/.npm` on Linux/macOS
path: ${{ join(steps.store-path.outputs.*, '') }}
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
- run: pnpm i
- run: pnpm deploy:prod

0 comments on commit 068f953

Please sign in to comment.