Skip to content

Commit 26c114e

Browse files
authored
feat: Remove support for Node 12, 14, 15, 16, 17 (#158)
BREAKING CHANGE: Removes support for outdated Node versions 12, 14, 15, 16, 17.
1 parent 8a4056f commit 26c114e

File tree

2 files changed

+18
-6
lines changed

2 files changed

+18
-6
lines changed

.github/workflows/ci.yml

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,17 +24,26 @@ jobs:
2424
runs-on: ubuntu-latest
2525
strategy:
2626
matrix:
27-
node: [ '12', '14', '15', '16', '17', '18', '20', '22' ]
27+
node: [ '18', '20', '22' ]
2828
timeout-minutes: 30
29-
env:
30-
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
31-
COVERAGE_OPTION: ./node_modules/.bin/nyc
3229
steps:
3330
- uses: actions/checkout@v4
3431
- uses: actions/setup-node@v4
3532
with:
3633
node-version: ${{ matrix.node }}
3734
cache: npm
38-
- run: npm ci
35+
- name: Install dependencies
36+
run: npm ci
3937
- run: npm run coverage
40-
- run: bash <(curl -s https://codecov.io/bash)
38+
env:
39+
CI: true
40+
- name: Upload code coverage
41+
uses: codecov/codecov-action@v4
42+
with:
43+
fail_ci_if_error: false
44+
token: ${{ secrets.CODECOV_TOKEN }}
45+
env:
46+
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
47+
concurrency:
48+
group: ${{ github.workflow }}-${{ github.ref }}
49+
cancel-in-progress: true

package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,5 +35,8 @@
3535
"lint-fix": "eslint --cache --fix ./index.js ./lib/** ./spec/**/*.js",
3636
"test": "jasmine",
3737
"coverage": "nyc jasmine"
38+
},
39+
"engines": {
40+
"node": ">=18.20.4 <19.0.0 || >=20.18.0 <21.0.0 || >=22.12.0 <23.0.0"
3841
}
3942
}

0 commit comments

Comments
 (0)