Skip to content

Commit affeb23

Browse files
committed
feat(node-versions): raised the minimum required node version to v18
BREAKING CHANGE: the minimum required version of node is now v18
1 parent 2c981fb commit affeb23

File tree

4 files changed

+14
-8
lines changed

4 files changed

+14
-8
lines changed

.github/workflows/release.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ jobs:
2323
with:
2424
node-version: lts/*
2525
cache: npm
26-
- run: npm ci
26+
- run: npm clean-install
27+
- run: npm audit signatures
2728
- run: npx semantic-release
2829
env:
2930
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/test.yml

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,9 @@ jobs:
1313
strategy:
1414
matrix:
1515
node-version:
16-
- 14.17
17-
- 16
16+
- 18.0.0
17+
- 19
18+
- 20
1819
os:
1920
- ubuntu-latest
2021
- macos-latest
@@ -27,7 +28,7 @@ jobs:
2728
with:
2829
node-version: "${{ matrix.node-version }}"
2930
cache: npm
30-
- run: npm ci
31+
- run: npm clean-install
3132
- run: "npm run test:ci"
3233
test:
3334
runs-on: ubuntu-latest
@@ -36,9 +37,13 @@ jobs:
3637
- uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3
3738
- uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # v3
3839
with:
39-
node-version: 16
40+
node-version: "lts/*"
4041
cache: npm
41-
- run: npm ci
42+
- run: npm clean-install
43+
- run: npm audit signatures
4244
- name: Ensure dependencies are compatible with the engines range
4345
run: npx ls-engines
4446
- run: npm run lint
47+
# https://github.com/lirantal/lockfile-lint#readme
48+
- name: Scan lockfile for security issues
49+
run: npx lockfile-lint --path package-lock.json

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
"sinon": "15.1.0"
4040
},
4141
"engines": {
42-
"node": ">=14.17"
42+
"node": ">=18"
4343
},
4444
"files": [
4545
"lib",

0 commit comments

Comments
 (0)