Skip to content

Commit

Permalink
feat!: update node support matrix (only support node 16-20) (#750)
Browse files Browse the repository at this point in the history
  • Loading branch information
broofa committed Jun 3, 2024
1 parent 0385cd3 commit 883b163
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,16 @@ jobs:

strategy:
matrix:
node-version: [12.x, 14.x, 16.x, 18.x, 20.x]
node-version: [16.x, 18.x, 20.x]

steps:
- uses: actions/checkout@v4
with:
fetch-depth: 10
- name: Use Node.js 18.x to build
- name: Use Node.js 20.x to build
uses: actions/setup-node@v3
with:
node-version: 18.x
node-version: 20.x
- run: npm install
- run: npm run build
- run: rm -rf node_modules
Expand All @@ -30,10 +30,10 @@ jobs:
env:
CI: true
- run: npm run lint
if: matrix.node-version == '18.x'
if: matrix.node-version == '20.x'
- run: npm run docs:diff
if: matrix.node-version == '18.x'
if: matrix.node-version == '20.x'
- run: npm run test:node
if: matrix.node-version >= '18.x'
if: matrix.node-version >= '20.x'
- run: npm run test:pack
if: matrix.node-version >= '18.x'
if: matrix.node-version >= '20.x'
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ For the creation of [RFC4122](https://www.ietf.org/rfc/rfc4122.txt) UUIDs
- **Complete** - Support for RFC4122 version 1, 3, 4, 5, and 7 UUIDs
- **Cross-platform** - Support for ...
- CommonJS, [ECMAScript Modules](#ecmascript-modules) and [CDN builds](#cdn-builds)
- NodeJS 12+ ([LTS releases](https://github.com/nodejs/Release))
- NodeJS 16+ ([LTS releases](https://github.com/nodejs/Release))
- Chrome, Safari, Firefox, Edge browsers
- Webpack and rollup.js module bundlers
- [React Native / Expo](#react-native--expo)
Expand Down
2 changes: 1 addition & 1 deletion README_js.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ For the creation of [RFC4122](https://www.ietf.org/rfc/rfc4122.txt) UUIDs
- **Complete** - Support for RFC4122 version 1, 3, 4, 5, and 7 UUIDs
- **Cross-platform** - Support for ...
- CommonJS, [ECMAScript Modules](#ecmascript-modules) and [CDN builds](#cdn-builds)
- NodeJS 12+ ([LTS releases](https://github.com/nodejs/Release))
- NodeJS 16+ ([LTS releases](https://github.com/nodejs/Release))
- Chrome, Safari, Firefox, Edge browsers
- Webpack and rollup.js module bundlers
- [React Native / Expo](#react-native--expo)
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@
"prettier:fix": "prettier --write .",
"bundlewatch": "npm run pretest:browser && bundlewatch --config bundlewatch.config.json",
"md": "runmd --watch --output=README.md README_js.md",
"docs": "( node --version | grep -q 'v18' ) && ( npm run build && npx runmd --output=README.md README_js.md )",
"docs": "( node --version | grep -q 'v20' ) && ( npm run build && npx runmd --output=README.md README_js.md )",
"docs:diff": "npm run docs && git diff --quiet README.md",
"build": "./scripts/build.sh",
"prepack": "npm run build",
Expand Down

0 comments on commit 883b163

Please sign in to comment.