Skip to content

Commit

Permalink
try to cache pnpm packages
Browse files Browse the repository at this point in the history
  • Loading branch information
Nickwasused committed May 5, 2024
1 parent 7b7ab9b commit d96a244
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/build-and-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,15 @@ jobs:
- name: install pnpm
run: npm i -g pnpm

- name: cache packages
id: pnpm-cache
uses: actions/cache@v4
with:
path: "~/.pnpm-store"
key: ${{ runner.os }}-pnpm-cache-${{ hashFiles('**/pnpm-lock.yaml') }}-${{ hashFiles('**/package.json') }}

- name: Install packages
if: steps.pnpm-cache.outputs.cache-hit != 'true'
run: pnpm i

- name: run pnpm build
Expand Down

0 comments on commit d96a244

Please sign in to comment.