From bc6633921375ffd2fc9347537c28a3ae86972525 Mon Sep 17 00:00:00 2001 From: Charles Brown Date: Thu, 19 Oct 2023 06:45:55 -0500 Subject: [PATCH] Use internal pnpm cache --- .github/actions/setup/action.yml | 21 ++++----------------- 1 file changed, 4 insertions(+), 17 deletions(-) diff --git a/.github/actions/setup/action.yml b/.github/actions/setup/action.yml index d0428e9b9..26efa39c7 100644 --- a/.github/actions/setup/action.yml +++ b/.github/actions/setup/action.yml @@ -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