diff --git a/.github/workflows/deploy-example-site.yml b/.github/workflows/deploy-example-site.yml index 2088db2d..2c3549b5 100644 --- a/.github/workflows/deploy-example-site.yml +++ b/.github/workflows/deploy-example-site.yml @@ -24,20 +24,22 @@ jobs: name: Install pnpm id: pnpm-install with: - version: 8 + version: 9 run_install: false - name: Get pnpm store directory id: pnpm-cache run: | - echo "::set-output name=pnpm_cache_dir::$(pnpm store path)" - - uses: actions/cache@v3 + echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV + + - uses: actions/cache@v4 name: Setup pnpm cache with: - path: ${{ steps.pnpm-cache.outputs.pnpm_cache_dir }} + path: ${{ env.STORE_PATH }} key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }} restore-keys: | ${{ runner.os }}-pnpm-store- + - name: Install antfu/ni run: npm i -g @antfu/ni