From d144d5c2fc6f703c03d7ba0470954dd09fef5561 Mon Sep 17 00:00:00 2001 From: Jason Date: Tue, 26 Aug 2025 23:32:13 +0800 Subject: [PATCH] ci(workflow): fix pnpm cache path context by using step outputs - Replace env var STORE_PATH with step output\n- Add id to pnpm-store step and write to \n- Reference cache path via steps.pnpm-store.outputs.path\n- Resolves linter warning: Context access might be invalid: STORE_PATH\n- No behavior change; caching remains the same --- .github/workflows/release.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 58e1c46..23e183e 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -37,13 +37,14 @@ jobs: run_install: false - name: Get pnpm store directory + id: pnpm-store shell: bash - run: echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV + run: echo "path=$(pnpm store path --silent)" >> $GITHUB_OUTPUT - name: Setup pnpm cache uses: actions/cache@v3 with: - path: ${{ env.STORE_PATH }} + path: ${{ steps.pnpm-store.outputs.path }} key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }} restore-keys: ${{ runner.os }}-pnpm-store-