Skip to content

Commit e87da49

Browse files
committed
feat(node-versions): define the supported node version ranges
BREAKING CHANGE: node version support has been limited to the defined ranges
1 parent 4be4563 commit e87da49

File tree

4 files changed

+4412
-500
lines changed

4 files changed

+4412
-500
lines changed

.github/workflows/node-ci.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,25 @@ env:
1313
FORCE_COLOR: 1
1414
NPM_CONFIG_COLOR: always
1515
jobs:
16+
verify-matrix:
17+
runs-on: ubuntu-latest
18+
strategy:
19+
matrix:
20+
node:
21+
- 18.19.0
22+
- 20.9.0
23+
- 22.11.0
24+
- 23
25+
steps:
26+
- uses: actions/checkout@v4.2.2
27+
- name: Setup node
28+
uses: actions/setup-node@v4.2.0
29+
with:
30+
cache: npm
31+
node-version: ${{ matrix.node }}
32+
- run: npm clean-install
33+
- run: corepack npm audit signatures
34+
- run: npm test
1635
verify:
1736
runs-on: ubuntu-latest
1837
steps:
@@ -29,6 +48,7 @@ jobs:
2948
release:
3049
needs:
3150
- verify
51+
- verify-matrix
3252
permissions:
3353
contents: write
3454
id-token: write
@@ -41,6 +61,7 @@ jobs:
4161
runs-on: ubuntu-latest
4262
needs:
4363
- verify
64+
- verify-matrix
4465
if: ${{ !cancelled() }}
4566
steps:
4667
- name: All matrix versions passed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ opinionated scaffolder for monorepos managed with [Lerna](https://lerna.js.org/)
2828
[![MIT license][license-badge]][license-link]
2929
[![npm][npm-badge]][npm-link]
3030
[![Try @form8ion/lerna on RunKit][runkit-badge]][runkit-link]
31+
![node][node-badge]
3132

3233
<!--consumer-badges end -->
3334

@@ -120,3 +121,5 @@ $ npm test
120121
[runkit-badge]: https://badge.runkitcdn.com/@form8ion/lerna.svg
121122

122123
[slsa-badge]: https://slsa.dev/images/gh-badge-level2.svg
124+
125+
[node-badge]: https://img.shields.io/node/v/@form8ion/lerna?logo=node.js

0 commit comments

Comments
 (0)