Skip to content

Commit ed9df3e

Browse files
committed
feat: update node version
1 parent 610b0b6 commit ed9df3e

File tree

5 files changed

+7
-3
lines changed

5 files changed

+7
-3
lines changed

.github/workflows/CI.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212

1313
strategy:
1414
matrix:
15-
node-version: [18.x]
15+
node-version: [20.x]
1616

1717
steps:
1818
- uses: actions/checkout@v3

.github/workflows/package.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ on:
1212
required: true
1313

1414
env:
15-
NODE_VERSION: 18
15+
NODE_VERSION: 20
1616

1717
jobs:
1818
pack:

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66
- 'main'
77

88
env:
9-
NODE_VERSION: 18
9+
NODE_VERSION: 20
1010

1111
jobs:
1212
build-test:

.nvmrc

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

package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@
77
"type": "git",
88
"url": "https://github.com/rpidanny/leetcode-gpt.git"
99
},
10+
"engines": {
11+
"node": ">=20.8.1"
12+
},
1013
"scripts": {
1114
"build": "node utils/build.js",
1215
"build:dev": "rm -rf build && NODE_ENV=production webpack",

0 commit comments

Comments
 (0)