Skip to content

Commit

Permalink
refactor: setup-pnpm action
Browse files Browse the repository at this point in the history
  • Loading branch information
andykenward committed Mar 10, 2024
1 parent 932bf3c commit be15409
Showing 1 changed file with 2 additions and 15 deletions.
17 changes: 2 additions & 15 deletions setup-pnpm/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,24 +13,11 @@ inputs:
runs:
using: "composite"
steps:
- uses: pnpm/action-setup@a3252b78c470c02df07e9d59298aecedc3ccdd6d #v3.0.0
- uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 #v4.0.2
with:
node-version: ${{ inputs.node-version }}
- uses: pnpm/action-setup@a3252b78c470c02df07e9d59298aecedc3ccdd6d #v3.0.0
with:
run_install: false
- name: Get pnpm store directory
id: pnpm-cache
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
- uses: actions/cache@13aacd865c20de90d75de3b17ebe84f7a17d57d2 #v4.0.0
name: Setup pnpm cache
with:
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
cache: "pnpm"
- name: Install dependencies
shell: bash
run: pnpm install

0 comments on commit be15409

Please sign in to comment.