From 5c83d585a2c194cadc32927ece4501ec005d7965 Mon Sep 17 00:00:00 2001 From: zhaoge <> Date: Fri, 28 Mar 2025 16:23:43 +0800 Subject: [PATCH] feat: update cache actions/checkout's version --- .github/workflows/CI.yml | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index e540ab3..330e2d7 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -15,10 +15,10 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Cache yarn.lock - uses: actions/cache@v2 + uses: actions/cache@v4 with: path: package-temp-dir key: lock-${{ github.sha }} @@ -34,7 +34,7 @@ jobs: cp yarn.lock package-temp-dir - name: Cache node_modules id: node_modules_cache_id - uses: actions/cache@v2 + uses: actions/cache@v4 with: path: node_modules key: node_modules-${{ hashFiles('**/package-temp-dir/yarn.lock') }} @@ -50,13 +50,13 @@ jobs: - uses: actions/checkout@v2 - name: Restore cache from yarn.lock - uses: actions/cache@v2 + uses: actions/cache@v4 with: path: package-temp-dir key: lock-${{ github.sha }} - name: Restore cache from node_modules - uses: actions/cache@v2 + uses: actions/cache@v4 with: path: node_modules key: node_modules-${{ hashFiles('**/package-temp-dir/yarn.lock') }} @@ -71,13 +71,13 @@ jobs: - uses: actions/checkout@v2 - name: Restore cache from yarn.lock - uses: actions/cache@v2 + uses: actions/cache@v4 with: path: package-temp-dir key: lock-${{ github.sha }} - name: Restore cache from node_modules - uses: actions/cache@v2 + uses: actions/cache@v4 with: path: node_modules key: node_modules-${{ hashFiles('**/package-temp-dir/yarn.lock') }} @@ -92,13 +92,13 @@ jobs: - uses: actions/checkout@v2 - name: Restore cache from yarn.lock - uses: actions/cache@v2 + uses: actions/cache@v4 with: path: package-temp-dir key: lock-${{ github.sha }} - name: Restore cache from node_modules - uses: actions/cache@v2 + uses: actions/cache@v4 with: path: node_modules key: node_modules-${{ hashFiles('**/package-temp-dir/yarn.lock') }} @@ -118,13 +118,13 @@ jobs: - uses: actions/checkout@v2 - name: Restore cache from yarn.lock - uses: actions/cache@v2 + uses: actions/cache@v4 with: path: package-temp-dir key: lock-${{ github.sha }} - name: Restore cache from node_modules - uses: actions/cache@v2 + uses: actions/cache@v4 with: path: node_modules key: node_modules-${{ hashFiles('**/package-temp-dir/yarn.lock') }}