From 4153a714e3b96687a93e1163d87051cc7f3f2466 Mon Sep 17 00:00:00 2001 From: kastale Date: Fri, 6 Mar 2026 18:04:32 +0800 Subject: [PATCH] =?UTF-8?q?ci(workflow):=20=F0=9F=94=A7=20replace=20deprec?= =?UTF-8?q?ated=20cache=20action=20in=20lint=20workflow?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/nextLint.yml | 25 +++++++------------------ 1 file changed, 7 insertions(+), 18 deletions(-) diff --git a/.github/workflows/nextLint.yml b/.github/workflows/nextLint.yml index c3bda1c6..9dc3069f 100644 --- a/.github/workflows/nextLint.yml +++ b/.github/workflows/nextLint.yml @@ -1,5 +1,4 @@ name: Next Lint Check -# on: [push, pull_request] @@ -8,26 +7,16 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Setup Node.js - uses: actions/setup-node@v1 + uses: actions/setup-node@v4 with: - node-version: '20' # Your node version, default 20 in 2024 - - - name: Cache node modules - uses: actions/cache@v2 - env: - cache-name: cache-node-modules - with: - path: ~/.npm - key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }} - restore-keys: | - ${{ runner.os }}-build-${{ env.cache-name }}- - ${{ runner.os }}-build- - ${{ runner.os }}- + node-version: '20' + cache: yarn + cache-dependency-path: yarn.lock - name: Install Dependencies - run: yarn + run: yarn install --frozen-lockfile - name: Run ESLint - run: yarn lint \ No newline at end of file + run: yarn lint