Skip to content

Commit 186dc8c

Browse files
committed
feat: update Node.js version across configurations and package files
- Changed Node.js version in `.nvmrc` from `20.19.2` to `20`. - Updated `package.json` to require Node.js version `>=20.8.1`. - Modified GitHub Actions workflows to use Node.js `20.x` instead of `18.x` in `lint.yml`, `lock-file-maintenance.yml`, `preview-release.yaml`, `semantic-release.yml`, and `test.yml`. - Adjusted `node_version` and `semantic_release_version` matrices in `test.yml` to reflect the new Node.js version requirements. - Updated peer dependencies in multiple package `package.json` files to support Node.js `>=20.8.1`. BREAKING CHANGE: Changed supported Node version to >=20.8.1
1 parent a0caeac commit 186dc8c

File tree

12 files changed

+18
-18
lines changed

12 files changed

+18
-18
lines changed

.github/workflows/lint.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -277,10 +277,10 @@ jobs:
277277
with:
278278
run_install: false
279279

280-
- name: "Use Node.js 18.x"
280+
- name: "Use Node.js 20.x"
281281
uses: "actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020" # v4.4.0
282282
with:
283-
node-version: "18.20.8"
283+
node-version: "20.x"
284284
cache: "pnpm"
285285

286286
- name: "Verify the integrity of provenance attestations and registry signatures for installed dependencies"

.github/workflows/lock-file-maintenance.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
id: "setup"
3939
uses: "anolilab/workflows/step/setup@main"
4040
with:
41-
node-version: "18.x"
41+
node-version: "20.x"
4242
cache-prefix: "lock-file"
4343
install-packages: "false"
4444

.github/workflows/preview-release.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ jobs:
4949
id: "setup"
5050
uses: "anolilab/workflows/step/setup@main"
5151
with:
52-
node-version: "18.x"
52+
node-version: "20.x"
5353
cache-prefix: "preview-release"
5454

5555
# Temporary solution until Nx solve this https://github.com/nrwl/nx/issues/22259

.github/workflows/semantic-release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ jobs:
5757
id: "setup"
5858
uses: "anolilab/workflows/step/setup@main"
5959
with:
60-
node-version: "18.x"
60+
node-version: "20.x"
6161
cache-prefix: "semantic-release"
6262

6363
- name: "Build Production"

.github/workflows/test.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,8 @@ jobs:
5959
matrix:
6060
os:
6161
- "ubuntu-latest"
62-
node_version: ["18", "20", "21", "22", "23", "24"]
63-
semantic_release_version: ["^20", "^21", "^22", "^23", "^24"]
62+
node_version: ["20", "21", "22", "23", "24"]
63+
semantic_release_version: ["^22", "^23", "^24"]
6464
# On the other platforms, we only test the lts node version
6565
include:
6666
- os: "macos-latest"
@@ -117,7 +117,7 @@ jobs:
117117
matrix:
118118
os:
119119
- "ubuntu-latest"
120-
node_version: ["18", "20", "21", "22"]
120+
node_version: ["20", "21", "22"]
121121
# On the other platforms, we only test the lts node version
122122
include:
123123
- os: "macos-latest"
@@ -173,7 +173,7 @@ jobs:
173173
run: |
174174
files="${{ steps.files.outputs.all_changed_files }}";
175175
176-
if [[ ${{ matrix.os }} == "ubuntu-latest" && ${{ matrix.node_version }} == 18 ]]; then
176+
if [[ ${{ matrix.os }} == "ubuntu-latest" && ${{ matrix.node_version }} == 20 ]]; then
177177
pnpm run test:affected:coverage --files=${files//\\/\/}
178178
else
179179
pnpm run test:affected --files=${files//\\/\/}
@@ -184,7 +184,7 @@ jobs:
184184
run: "tar -cf - .nx/cache | lz4 > /tmp/nx_cache.tar.lz4" # compress nx cache
185185

186186
- name: "Upload code coverage to codecov"
187-
if: "matrix.os == 'ubuntu-latest' && matrix.node_version == 18"
187+
if: "matrix.os == 'ubuntu-latest' && matrix.node_version == 20"
188188
uses: "anolilab/workflows/step/codecov@main"
189189
with:
190190
run-lint: "needs.files-changed.outputs.codecov == 'true'"

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
20.19.2
1+
20

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@
8282
},
8383
"packageManager": "[email protected]",
8484
"engines": {
85-
"node": ">=18.17 <=23.*"
85+
"node": ">=20.8.1"
8686
},
8787
"pnpm": {
8888
"onlyBuiltDependencies": [

packages/multi-semantic-release/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,10 +102,10 @@
102102
"vitest": "^3.2.3"
103103
},
104104
"peerDependencies": {
105-
"semantic-release": "^20.0 || ^21.0 || >=22.0.3"
105+
"semantic-release": ">=22.0.3"
106106
},
107107
"engines": {
108-
"node": ">=18 || >=20.6.1"
108+
"node": ">=20.8.1"
109109
},
110110
"os": [
111111
"darwin",

packages/rc/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@
126126
"vitest": "^3.2.3"
127127
},
128128
"engines": {
129-
"node": ">=18.17 <=24.*"
129+
"node": ">=20.8.1"
130130
},
131131
"publishConfig": {
132132
"access": "public",

packages/semantic-release-clean-package-json/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@
102102
"vitest": "^3.2.3"
103103
},
104104
"engines": {
105-
"node": ">=18.17 <=24.*"
105+
"node": ">=20.8.1"
106106
},
107107
"publishConfig": {
108108
"access": "public",

0 commit comments

Comments
 (0)