Browse Source

CI: replace deprecated `set-output` with `echo`

SukkaW 3 years ago
parent
commit
521cc90202
1 changed files with 6 additions and 1 deletions
  1. 6 1
      .github/workflows/main.yml

+ 6 - 1
.github/workflows/main.yml

@@ -30,10 +30,15 @@ jobs:
         with:
         with:
           version: 7
           version: 7
           run_install: false
           run_install: false
+      - name: Get pnpm store directory
+        id: pnpm-cache
+        shell: bash
+        run: |
+          echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
       - uses: actions/cache@v3
       - uses: actions/cache@v3
         name: Setup pnpm cache
         name: Setup pnpm cache
         with:
         with:
-          path: ${{ steps.pnpm-cache.outputs.pnpm_cache_dir }}
+          path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
           key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
           key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
           restore-keys: |
           restore-keys: |
             ${{ runner.os }}-pnpm-store-
             ${{ runner.os }}-pnpm-store-