Skip to content

Commit

Permalink
Add caching
Browse files Browse the repository at this point in the history
  • Loading branch information
relliv committed Sep 19, 2024
1 parent 2a4381d commit 177a0f4
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions .github/workflows/deploy-to-github-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,19 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: 22.x
cache: pnpm

- name: Install PNPM
run: npm i pnpm -g

- name: Cache node_modules Directory
uses: actions/cache@v4
id: node_modules-cache
with:
path: node_modules
key: ${{ runner.OS }}-node_modules-cache-${{ hashFiles('**/package.json') }}-${{ hashFiles('**/pnpm-lock.yaml') }}

- name: Install dependencies
run: |
npm i pnpm -g
pnpm i
run: pnpm i

- name: Build
run: pnpm build
Expand Down

0 comments on commit 177a0f4

Please sign in to comment.