Skip to content

Commit

Permalink
chore(ci): update pnpm action setup to version 4
Browse files Browse the repository at this point in the history
  • Loading branch information
jamiegyoung committed Oct 3, 2024
1 parent e828c23 commit 1a57e47
Showing 1 changed file with 6 additions and 18 deletions.
24 changes: 6 additions & 18 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,29 +16,17 @@ jobs:
with:
fetch-depth: 0

- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: 16

- uses: pnpm/action-setup@v2
- uses: pnpm/action-setup@v4
name: Install pnpm
with:
version: 8
version: 9
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
- name: Install Node.js
uses: actions/setup-node@v3
with:
path: ${{ env.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
node-version: 16
cache: 'pnpm'

- name: Install dependencies
run: pnpm install --frozen-lockfile
Expand Down

0 comments on commit 1a57e47

Please sign in to comment.