diff --git a/.github/workflows/pull_request.yaml b/.github/workflows/pull_request.yaml index a4c9fe5..3a5ae09 100644 --- a/.github/workflows/pull_request.yaml +++ b/.github/workflows/pull_request.yaml @@ -12,16 +12,16 @@ jobs: with: node-version: "20.x" cache: "pnpm" + - name: Install dependencies + run: pnpm install --frozen-lockfile - name: Add pnpm store path to env var id: pnpm-cache shell: bash run: echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT - - name: Install dependencies - run: pnpm install --frozen-lockfile - name: Cache node modules uses: actions/cache@v4 with: - path: ${{ env.STORE_PATH }} + path: ${{ steps.pnpm-cache.outputs.STORE_PATH }} key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }} restore-keys: | ${{ runner.os }}-pnpm-store- @@ -42,13 +42,10 @@ jobs: id: pnpm-cache shell: bash run: echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT - - name: TRY - shell: bash - run: echo ${{ steps.generate_number.outputs.STORE_PATH }} - - name: Restore cache + - name: Restore Cache uses: actions/cache@v4 with: - path: ${{ steps.generate_number.outputs.STORE_PATH }} + path: ${{ steps.pnpm-cache.outputs.STORE_PATH }} key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }} restore-keys: | ${{ runner.os }}-pnpm-store-