From 573b19ca0cf72f1c8531441d05785ac26004a805 Mon Sep 17 00:00:00 2001 From: puria-hjt Date: Thu, 27 Jun 2024 14:47:30 +0200 Subject: [PATCH] test --- .github/workflows/setup-node/action.yml | 21 +++++---------------- 1 file changed, 5 insertions(+), 16 deletions(-) diff --git a/.github/workflows/setup-node/action.yml b/.github/workflows/setup-node/action.yml index 7cf91dd..708ab2d 100644 --- a/.github/workflows/setup-node/action.yml +++ b/.github/workflows/setup-node/action.yml @@ -13,25 +13,14 @@ runs: with: version: 8 - - name: Get pnpm store directory - shell: bash - id: pnpm-cache - run: | - echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT - - name: Cache dependencies ⚡ + id: cache_dependencies uses: actions/cache@v3 with: - path: ${{ steps.pnpm-cache.outputs.STORE_PATH }} - key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/package.json') }} - restore-keys: | - ${{ runner.os }}-pnpm-store- + path: ~/.pnpm-store + key: pnpm-${{ hashFiles('pnpm-lock.yaml') }} - name: Install dependencies 🔧 shell: bash - run: | - if [ -f pnpm-lock.yaml ]; then - pnpm install --frozen-lockfile - else - pnpm install - fi + if: steps.cache_dependencies.outputs.cache-hit != 'true' + run: pnpm install --no-frozen-lockfile