From 2978ef487a4f520470bc714f1062e5226d1163fa Mon Sep 17 00:00:00 2001 From: PikachuEXE Date: Mon, 10 Aug 2026 10:29:19 +0800 Subject: [PATCH] * Migrate CI from pnpm/action-setup to pnpm/setup --- .github/workflows/linter.yml | 31 +++++-------------------------- 1 file changed, 5 insertions(+), 26 deletions(-) diff --git a/.github/workflows/linter.yml b/.github/workflows/linter.yml index 5c2e174..97ff431 100644 --- a/.github/workflows/linter.yml +++ b/.github/workflows/linter.yml @@ -24,34 +24,13 @@ jobs: with: persist-credentials: false - - name: Use Node.js 24.x - uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 #v7.0.0 - with: - node-version: 24.x - package-manager-cache: false - - - name: Install pnpm - uses: pnpm/action-setup@0ebf47130e4866e96fce0953f49152a61190b271 #v6.0.9 + - name: Install pnpm and Node + uses: pnpm/setup@v1 with: version: 11 - cache: false - - - name: Get pnpm cache directory - id: cache_dir - shell: bash - run: | - { - echo 'cache_dir<> "$GITHUB_OUTPUT" - - - name: Restore pnpm cache - id: restore_cache - uses: actions/cache/restore@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 #v6.1.0 - with: - key: ${{ format('node-cache-{0}-{1}-pnpm-{2}', runner.os, runner.arch, hashFiles('pnpm-lock.yaml')) }} - path: ${{ steps.cache_dir.outputs.cache_dir }} + runtime: node@24 + cache: true + install: false - run: pnpm run ci shell: bash