Skip to content

Commit

Permalink
Use internal pnpm cache
Browse files Browse the repository at this point in the history
  • Loading branch information
carbonrobot committed Oct 19, 2023
1 parent 2f4eabc commit bc66339
Showing 1 changed file with 4 additions and 17 deletions.
21 changes: 4 additions & 17 deletions .github/actions/setup/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,28 +8,15 @@ inputs:
runs:
using: "composite"
steps:
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: ${{ inputs.node-version }}

- uses: pnpm/action-setup@v2
with:
version: 7
run_install: false

- name: Get pnpm store directory
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
- name: Setup pnpm cache
uses: actions/cache@v3
- name: Use Node.js
uses: actions/setup-node@v3
with:
path: ${{ steps.pnpm-cache.outputs.pnpm_cache_dir }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
node-version: ${{ inputs.node-version }}
cache: 'pnpm'

# Wireit cache
- uses: google/wireit@setup-github-actions-caching/v1
Expand Down

0 comments on commit bc66339

Please sign in to comment.