diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 7ec9a2e..bf79875 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -12,7 +12,7 @@ jobs: strategy: matrix: - node-version: [18.x] + node-version: [20.x] steps: - uses: actions/checkout@v3 diff --git a/.github/workflows/package.yml b/.github/workflows/package.yml index 08eb070..410f819 100644 --- a/.github/workflows/package.yml +++ b/.github/workflows/package.yml @@ -12,7 +12,7 @@ on: required: true env: - NODE_VERSION: 18 + NODE_VERSION: 20 jobs: pack: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index f173053..9cc7067 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -6,7 +6,7 @@ on: - 'main' env: - NODE_VERSION: 18 + NODE_VERSION: 20 jobs: build-test: diff --git a/.nvmrc b/.nvmrc new file mode 100644 index 0000000..093fa3e --- /dev/null +++ b/.nvmrc @@ -0,0 +1 @@ +v20.8.1 \ No newline at end of file diff --git a/package.json b/package.json index 0c10166..1691c9e 100644 --- a/package.json +++ b/package.json @@ -7,6 +7,9 @@ "type": "git", "url": "https://github.com/rpidanny/leetcode-gpt.git" }, + "engines": { + "node": ">=20.8.1" + }, "scripts": { "build": "node utils/build.js", "build:dev": "rm -rf build && NODE_ENV=production webpack",