Skip to content

Commit

Permalink
cache
Browse files Browse the repository at this point in the history
  • Loading branch information
IThundxr committed Apr 20, 2024
1 parent 05af0e6 commit 750726e
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,22 @@ jobs:
uses: pnpm/action-setup@v3
with:
version: 8
run_install: false
- name: Setup Pages
id: pages
uses: actions/configure-pages@v4
- name: Get pnpm store directory
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
- uses: actions/cache@v4
name: Setup pnpm cache
with:
path: ${{ env.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: ${{ runner.os }}-pnpm-store-
- name: Install dependencies
run: "pnpm i"
run: pnpm install
- name: Build production website
env:
# For maximum backward compatibility with Hugo modules
Expand Down

0 comments on commit 750726e

Please sign in to comment.