Skip to content

Commit

Permalink
Breaking: Set Node-Version to >=v16.20 (#309)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
Trickfilm400 authored Jun 19, 2023
1 parent d6f6060 commit 4cb31ee
Show file tree
Hide file tree
Showing 7 changed files with 7,583 additions and 23,780 deletions.
15 changes: 7 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,12 @@ jobs:
strategy:
matrix:
node_version:
- 10 # to be removed 2021-05
- 12 # to be removed 2022-05
- 14 # to be removed 2023-05
- 16 # to be removed after 2023-09
- 18
- x.x.x # safety net; don't remove
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node_version }}
- run: npm ci
Expand All @@ -36,10 +35,10 @@ jobs:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 14
node-version: 18
registry-url: https://registry.npmjs.org/
- run: npm ci
- run: npm run release
Expand Down
4 changes: 4 additions & 0 deletions .mocharc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
module.exports = {
reporter: 'spec',
require: './test/bootstrap',
}
3 changes: 2 additions & 1 deletion .releaserc.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,6 @@
"message": "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"
}]
],
"tagFormat": "${version}"
"tagFormat": "${version}",
"branches": ["+([0-9])?(.{+([0-9]),x}).x", "main", "next", "next-major", {"name": "beta", "prerelease": true}, {"name": 'alpha', "prerelease": true}]
}
Loading

0 comments on commit 4cb31ee

Please sign in to comment.