Skip to content

Commit 45b392c

Browse files
committed
Update supported versions of node
- Drop support for node 14 - Add support for node 18 and node 20
1 parent 23269a9 commit 45b392c

File tree

2 files changed

+9
-8
lines changed

2 files changed

+9
-8
lines changed

.github/workflows/ci.yml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
- uses: actions/checkout@v3
1818
- uses: actions/setup-node@v3
1919
with:
20-
node-version: 16
20+
node-version: 20
2121
- run: npm ci
2222
- run: npm run-s test:lint
2323
prettier:
@@ -27,7 +27,7 @@ jobs:
2727
- uses: actions/checkout@v3
2828
- uses: actions/setup-node@v3
2929
with:
30-
node-version: 16
30+
node-version: 20
3131
- run: npm ci
3232
- run: npm run-s test:prettier
3333
typescript:
@@ -37,7 +37,7 @@ jobs:
3737
- uses: actions/checkout@v3
3838
- uses: actions/setup-node@v3
3939
with:
40-
node-version: 16
40+
node-version: 20
4141
- run: npm ci
4242
- run: npm run-s test:ts
4343
test:
@@ -47,7 +47,7 @@ jobs:
4747
- uses: actions/checkout@v3
4848
- uses: actions/setup-node@v3
4949
with:
50-
node-version: 16
50+
node-version: 20
5151
- run: npm ci
5252
- run: npm run-s test:unit
5353
- uses: coverallsapp/[email protected]
@@ -59,8 +59,9 @@ jobs:
5959
fail-fast: false
6060
matrix:
6161
node_version:
62-
- 14
6362
- 16
63+
- 18
64+
- 20
6465
os:
6566
- macos-latest
6667
- ubuntu-latest
@@ -100,7 +101,7 @@ jobs:
100101
- uses: actions/checkout@v3
101102
- uses: actions/setup-node@v3
102103
with:
103-
node-version: 16
104+
node-version: 20
104105
- run: npm ci
105106
- uses: actions/download-artifact@v3
106107
with:
@@ -132,7 +133,7 @@ jobs:
132133
- uses: actions/setup-node@v3
133134
with:
134135
registry-url: https://registry.npmjs.org/
135-
node-version: 16
136+
node-version: 20
136137
- run: npm ci
137138
- uses: actions/download-artifact@v3
138139
with:

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"source": "src/index.ts",
2121
"types": "dist/index.d.ts",
2222
"engines": {
23-
"node": ">=14"
23+
"node": ">=16"
2424
},
2525
"scripts": {
2626
"clean": "rimraf node_modules coverage dist",

0 commit comments

Comments
 (0)