Skip to content

Commit

Permalink
fix pnpm cache
Browse files Browse the repository at this point in the history
  • Loading branch information
rwv committed Jan 22, 2024
1 parent dfcee65 commit 30f0fab
Showing 1 changed file with 21 additions and 4 deletions.
25 changes: 21 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,32 @@ jobs:

steps:
- uses: actions/checkout@v3
- name: Use Node.js 16.x
- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: 16.x
cache: 'pnpm'
node-version: 16

- uses: pnpm/action-setup@v2
name: Install pnpm
with:
version: 8
run_install: true
run_install: false

- name: Get pnpm store directory
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
- uses: actions/cache@v3
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 install
- run: pnpm ci
- run: pnpm run build
- uses: actions/upload-artifact@v3
Expand Down

0 comments on commit 30f0fab

Please sign in to comment.