Skip to content

Commit 5d8e090

Browse files
committed
feat!: bump minimum node support to v20 & update typescript
BREAKING CHANGE: Drop support for non-LTS Node.js versions and upgrade the typescript version to support the newer JS features.
1 parent d49c300 commit 5d8e090

File tree

6 files changed

+957
-314
lines changed

6 files changed

+957
-314
lines changed

.github/workflows/nodejs.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
- name: Setup Node.js
2626
uses: actions/setup-node@v3
2727
with:
28-
node-version: 18.x
28+
node-version-file: '.nvmrc'
2929
cache: 'npm'
3030
- name: Install dependencies
3131
run: npm clean-install
@@ -46,7 +46,7 @@ jobs:
4646
- name: Setup Node.js
4747
uses: actions/setup-node@v3
4848
with:
49-
node-version: 18.x
49+
node-version-file: '.nvmrc'
5050
cache: 'npm'
5151
- name: Install dependencies
5252
run: npm clean-install
@@ -60,7 +60,7 @@ jobs:
6060
- codelint
6161
strategy:
6262
matrix:
63-
node-version: [18.x, 20.x, 22.x]
63+
node-version: [20.x, 22.x]
6464
steps:
6565
- name: Checkout code
6666
uses: actions/checkout@v3
@@ -85,10 +85,10 @@ jobs:
8585
- uses: actions/checkout@v3
8686
with:
8787
persist-credentials: false
88-
- name: Use Node.js 20.x
88+
- name: Use Node.js
8989
uses: actions/setup-node@v3
9090
with:
91-
node-version: 20.x
91+
node-version-file: '.nvmrc'
9292
cache: 'npm'
9393
- name: Install deps
9494
run: npm ci
@@ -121,7 +121,7 @@ jobs:
121121
- name: Setup Node.js
122122
uses: actions/setup-node@v3
123123
with:
124-
node-version: "lts/*"
124+
node-version-file: '.nvmrc'
125125
cache: 'npm'
126126
- name: Install dependencies
127127
run: npm clean-install

.nvmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
20

0 commit comments

Comments
 (0)