Skip to content

Commit 001a7c7

Browse files
committed
chore: update node to v18 in CI
1 parent e254a98 commit 001a7c7

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

Diff for: .github/workflows/build.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -13,17 +13,17 @@ jobs:
1313
runs-on: ubuntu-latest
1414
steps:
1515
- uses: actions/checkout@v3
16-
- name: Use Node.js 16.x
16+
- name: Use Node.js 18.x
1717
uses: actions/[email protected]
1818
with:
19-
node-version: 16.x
19+
node-version: 18.x
2020
- name: Cache Node.js modules
2121
uses: actions/[email protected]
2222
with:
2323
path: ~/.npm # npm cache files are stored in `~/.npm` on Linux/macOS
24-
key: ${{ runner.OS }}-node-16.x-${{ hashFiles('**/package-lock.json') }}
24+
key: ${{ runner.OS }}-node-18.x-${{ hashFiles('**/package-lock.json') }}
2525
restore-keys: |
26-
${{ runner.OS }}-node-16.x
26+
${{ runner.OS }}-node-18.x
2727
${{ runner.OS }}-
2828
- name: Install dependencies
2929
run: npm ci
@@ -34,7 +34,7 @@ jobs:
3434

3535
strategy:
3636
matrix:
37-
node-version: [16.x]
37+
node-version: [18.x]
3838

3939
steps:
4040
- uses: actions/checkout@v3

Diff for: .github/workflows/release.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -13,17 +13,17 @@ jobs:
1313

1414
steps:
1515
- uses: actions/checkout@v3
16-
- name: Use Node.js 16.x
16+
- name: Use Node.js 18.x
1717
uses: actions/[email protected]
1818
with:
19-
node-version: 16.x
19+
node-version: 18.x
2020
- name: Cache Node.js modules
2121
uses: actions/[email protected]
2222
with:
2323
path: ~/.npm # npm cache files are stored in `~/.npm` on Linux/macOS
24-
key: ${{ runner.OS }}-node-16.x-${{ hashFiles('**/package-lock.json') }}
24+
key: ${{ runner.OS }}-node-18.x-${{ hashFiles('**/package-lock.json') }}
2525
restore-keys: |
26-
${{ runner.OS }}-node-16.x
26+
${{ runner.OS }}-node-18.x
2727
${{ runner.OS }}-
2828
- name: Install dependencies
2929
run: npm ci

0 commit comments

Comments
 (0)