From 8d9abe07c2b78d636b4c4b6097e2962fde1f4463 Mon Sep 17 00:00:00 2001 From: xiaoshuangLi Date: Tue, 9 Jan 2024 11:06:33 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=F0=9F=A4=96=20upgrade=20workflow=202.?= =?UTF-8?q?0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/publish.yml | 14 +++++++------- .github/workflows/test.yml | 18 +++++++++--------- 2 files changed, 16 insertions(+), 16 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index f55f12c..41d121d 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -15,14 +15,14 @@ jobs: node: [20.x] steps: - - uses: actions/setup-node@v3 + - uses: actions/setup-node@v4 with: node-version: ${{ matrix.node }} - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Cache node_modules - uses: actions/cache@v2 + uses: actions/cache@v3 id: cache-node_modules with: path: node_modules @@ -41,20 +41,20 @@ jobs: node: [20.x] steps: - - uses: actions/setup-node@v3 + - uses: actions/setup-node@v4 with: node-version: ${{ matrix.node }} - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Restore cache from node_modules - uses: actions/cache@v2 + uses: actions/cache@v3 with: path: node_modules key: node_modules-${{ hashFiles('**/package-lock.json') }} - name: Cache package version - uses: actions/cache@v2 + uses: actions/cache@v3 id: cache-package-version with: path: package.json diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 6d28273..c1e9942 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -15,14 +15,14 @@ jobs: node: [20.x] steps: - - uses: actions/setup-node@v3 + - uses: actions/setup-node@v4 with: node-version: ${{ matrix.node }} - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Cache node_modules - uses: actions/cache@v2 + uses: actions/cache@v3 id: cache-node_modules with: path: node_modules @@ -41,14 +41,14 @@ jobs: node: [20.x] steps: - - uses: actions/setup-node@v3 + - uses: actions/setup-node@v4 with: node-version: ${{ matrix.node }} - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Restore cache from node_modules - uses: actions/cache@v2 + uses: actions/cache@v3 with: path: node_modules key: node_modules-${{ hashFiles('**/package-lock.json') }} @@ -64,14 +64,14 @@ jobs: node: [20.x] steps: - - uses: actions/setup-node@v3 + - uses: actions/setup-node@v4 with: node-version: ${{ matrix.node }} - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Restore cache from node_modules - uses: actions/cache@v2 + uses: actions/cache@v3 with: path: node_modules key: node_modules-${{ hashFiles('**/package-lock.json') }}