Skip to content

Commit

Permalink
feat: Drop Node < 18 support
Browse files Browse the repository at this point in the history
BREAKING CHANGE:

The minimum supported Node.js version is 18
  • Loading branch information
sapegin committed Sep 25, 2023
1 parent 4b2b57e commit 102a886
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 14 deletions.
14 changes: 4 additions & 10 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,11 @@ on:
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version:
- 14.x
- 16.x
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
node-version-file: .nvmrc
cache: 'npm'
- run: npm ci
- run: npm run build --if-present
- run: npm test
7 changes: 4 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,11 @@ jobs:
name: Release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: lts/*
node-version-file: .nvmrc
cache: 'npm'
- run: npm ci
- env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
Expand Down
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
v18
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"repository": "sapegin/textlint-rule-stop-words",
"license": "MIT",
"engines": {
"node": ">=14"
"node": ">=18"
},
"main": "index.js",
"files": [
Expand Down

0 comments on commit 102a886

Please sign in to comment.