Skip to content

Commit 64b3201

Browse files
committed
feat(node-versions): define the supported ranges of node versions
BREAKING CHANGE: node version support has been limited to the defined ranges
1 parent 51b481b commit 64b3201

File tree

4 files changed

+3344
-129
lines changed

4 files changed

+3344
-129
lines changed

.github/workflows/node-ci.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
name: Node.js CI
2+
23
'on':
34
push:
45
branches:
@@ -9,10 +10,35 @@ name: Node.js CI
910
types:
1011
- opened
1112
- synchronize
13+
1214
env:
1315
FORCE_COLOR: 1
1416
NPM_CONFIG_COLOR: always
17+
18+
permissions:
19+
contents: read
20+
1521
jobs:
22+
verify-matrix:
23+
runs-on: ubuntu-latest
24+
strategy:
25+
matrix:
26+
node:
27+
- 18.19.0
28+
- 20.9.0
29+
- 22.11.0
30+
- 23
31+
steps:
32+
- uses: actions/[email protected]
33+
- name: Setup node
34+
uses: actions/[email protected]
35+
with:
36+
cache: npm
37+
node-version: ${{ matrix.node }}
38+
- run: npm clean-install
39+
- run: npm install --global corepack@latest
40+
- run: corepack npm audit signatures
41+
- run: npm test
1642
verify:
1743
runs-on: ubuntu-latest
1844
steps:
@@ -28,6 +54,12 @@ jobs:
2854
release:
2955
needs:
3056
- verify
57+
- verify-matrix
58+
permissions:
59+
contents: write
60+
id-token: write
61+
issues: write
62+
pull-requests: write
3163
uses: form8ion/.github/.github/workflows/release-package.yml@master
3264
secrets:
3365
NPM_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ opinionated scaffolder for [remark](https://github.com/remarkjs/remark) [plugins
2626
[![MIT license][license-badge]][license-link]
2727
[![npm][npm-badge]][npm-link]
2828
[![Try @form8ion/remark-plugin-scaffolder on RunKit][runkit-badge]][runkit-link]
29+
![node][node-badge]
2930

3031
<!--consumer-badges end -->
3132

@@ -114,3 +115,5 @@ $ npm test
114115
[github-actions-ci-link]: https://github.com/form8ion/remark-plugin-scaffolder/actions?query=workflow%3A%22Node.js+CI%22+branch%3Amaster
115116

116117
[github-actions-ci-badge]: https://github.com/form8ion/remark-plugin-scaffolder/workflows/Node.js%20CI/badge.svg
118+
119+
[node-badge]: https://img.shields.io/node/v/@form8ion/remark-plugin-scaffolder?logo=node.js

0 commit comments

Comments
 (0)