Skip to content

Commit

Permalink
Update action.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
JeanBarriere authored Dec 16, 2024
1 parent a35f524 commit 0710c8b
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions .github/actions/setup/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,24 +3,25 @@ description: "Setup Node, PNPM, and install dependencies"
runs:
using: "composite"
steps:
- uses: pnpm/action-setup@v3
with:
version: 8
run_install: false
- run: npm install -g [email protected]
shell: bash

- uses: actions/setup-node@v4
with:
node-version: 20
cache: 'pnpm'
node-version: '22.12.0'
registry-url: 'https://npm.pkg.github.com'
always-auth: true

- id: pnpm-cache
shell: bash
run: echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
- uses: actions/cache@v4

- uses: actions/cache@v3
with:
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: ${{ runner.os }}-pnpm-store-

- run: pnpm install --prefer-offline --frozen-lockfile
- run: pnpm install --prefer-offline
shell: bash

0 comments on commit 0710c8b

Please sign in to comment.