Skip to content

Commit

Permalink
chore: drop Node.js less than 20 (#310)
Browse files Browse the repository at this point in the history
Also, switch to using pkgjs action in CI workflow to handle Node.js versions
  • Loading branch information
simoneb authored Sep 10, 2024
1 parent 9e6ce38 commit 88d9c71
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 17 deletions.
20 changes: 4 additions & 16 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,22 +6,10 @@ on:
pull_request:
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version:
- 14
- 16
- 18
- 20
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- run: npm i
- run: npm run lint
- run: npm run test
uses: pkgjs/action/.github/workflows/node-test.yaml@v0
with:
strategy-fail-fast: true
test-command: npm run lint && npm run test
automerge:
needs: build
runs-on: ubuntu-latest
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"src"
],
"engines": {
"node": ">=14"
"node": ">=20"
},
"tsd": {
"directory": "./test/types"
Expand Down

0 comments on commit 88d9c71

Please sign in to comment.