Skip to content

Commit 461ff77

Browse files
Update GitHub Actions to v4 and Node 20
- actions/checkout v2 -> v4 - actions/setup-node v1 -> v4 with built-in caching - actions/cache v1 removed (now handled by setup-node) - Node 16 -> 20 Amp-Thread-ID: https://ampcode.com/threads/T-019c00e7-1e04-742b-aded-3416acb020cd Co-authored-by: Amp <amp@ampcode.com>
1 parent 0dad3b9 commit 461ff77

1 file changed

Lines changed: 4 additions & 14 deletions

File tree

.github/workflows/review.yml

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -14,23 +14,13 @@ jobs:
1414
runs-on: ubuntu-latest
1515
steps:
1616
- name: Checkout 🛎️
17-
uses: actions/checkout@v2.3.1
18-
with:
19-
persist-credentials: false
17+
uses: actions/checkout@v4
2018

21-
- name: Cache 📦
22-
uses: actions/cache@v1
23-
with:
24-
path: ~/.npm # npm cache files are stored in `~/.npm` on Linux/macOS
25-
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
26-
restore-keys: |
27-
${{ runner.os }}-build-${{ env.cache-name }}-
28-
${{ runner.os }}-build-
29-
${{ runner.os }}-
3019
- name: Setup Node Environment ⬢
31-
uses: actions/setup-node@v1
20+
uses: actions/setup-node@v4
3221
with:
33-
node-version: 16
22+
node-version: 20
23+
cache: 'npm'
3424

3525
- name: Install 🔧
3626
run: npm install

0 commit comments

Comments
 (0)