Skip to content

Commit 4cb31ee

Browse files
authored
Breaking: Set Node-Version to >=v16.20 (#309)
* build(deps): set required version to node v16.20 and update (dev-)dependencies All dependencies have been updated except for "is-ip", because it would require ESM modules * build(deps): update mocha configuration to new version * test: fixing broken test (But I'm not sure, why this changed - is this an upstream change?) * ci: update node versions * ci: set node v18 for publish job * ci: add main branch for the release the last release failed because the main branch is not in the configuration (https://github.com/semantic-release/semantic-release/blob/01e85df88af418f4e504ca4bb45658118f391b61/docs/usage/configuration.md#branches) BREAKING CHANGE: This change drops support for Node.js versions less than v16.20
1 parent d6f6060 commit 4cb31ee

File tree

7 files changed

+7583
-23780
lines changed

7 files changed

+7583
-23780
lines changed

.github/workflows/ci.yml

+7-8
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,12 @@ jobs:
1515
strategy:
1616
matrix:
1717
node_version:
18-
- 10 # to be removed 2021-05
19-
- 12 # to be removed 2022-05
20-
- 14 # to be removed 2023-05
18+
- 16 # to be removed after 2023-09
19+
- 18
2120
- x.x.x # safety net; don't remove
2221
steps:
23-
- uses: actions/checkout@v1
24-
- uses: actions/setup-node@v1
22+
- uses: actions/checkout@v3
23+
- uses: actions/setup-node@v3
2524
with:
2625
node-version: ${{ matrix.node_version }}
2726
- run: npm ci
@@ -36,10 +35,10 @@ jobs:
3635
needs: build
3736
runs-on: ubuntu-latest
3837
steps:
39-
- uses: actions/checkout@v1
40-
- uses: actions/setup-node@v1
38+
- uses: actions/checkout@v3
39+
- uses: actions/setup-node@v3
4140
with:
42-
node-version: 14
41+
node-version: 18
4342
registry-url: https://registry.npmjs.org/
4443
- run: npm ci
4544
- run: npm run release

.mocharc.js

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
module.exports = {
2+
reporter: 'spec',
3+
require: './test/bootstrap',
4+
}

.releaserc.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,6 @@
1010
"message": "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"
1111
}]
1212
],
13-
"tagFormat": "${version}"
13+
"tagFormat": "${version}",
14+
"branches": ["+([0-9])?(.{+([0-9]),x}).x", "main", "next", "next-major", {"name": "beta", "prerelease": true}, {"name": 'alpha', "prerelease": true}]
1415
}

0 commit comments

Comments
 (0)