Skip to content

Commit

Permalink
Merge pull request #1322 from okonet/node-16-eol
Browse files Browse the repository at this point in the history
feat: require at least Node.js 18.12.0
  • Loading branch information
iiroj committed Sep 12, 2023
2 parents a39b79b + 1e58b87 commit f85be25
Show file tree
Hide file tree
Showing 4 changed files with 276 additions and 153 deletions.
10 changes: 10 additions & 0 deletions .changeset/dull-moons-double.md
@@ -0,0 +1,10 @@
---
'lint-staged': major
---

**Require at least Node.js 18.12.0**

This release drops support for Node.js 16, which is EOL after 2023-09-11.
Please upgrade your Node.js to the latest version.

Additionally, all dependencies have been updated to their latest versions.
6 changes: 2 additions & 4 deletions .github/workflows/push.yml
Expand Up @@ -86,9 +86,8 @@ jobs:
- install
strategy:
matrix:
# Test with Node.js v16 (LTS), v18 (LTS), and v20 (Current)
# Test with Node.js v18 (LTS) and v20 (Current)
node:
- 16
- 18
- 20
# Test with Ubuntu, macOS, and Windows
Expand Down Expand Up @@ -128,9 +127,8 @@ jobs:
- run: node bin/lint-staged.js --help
# Run tests
- run: npm test
# Upload coverage artifact from Node.js LTS
- uses: actions/upload-artifact@v3
if: matrix.os == 'ubuntu-latest' && matrix.node == '16'
if: matrix.os == 'ubuntu-latest' && matrix.node == '20'
with:
name: coverage
path: coverage
Expand Down

0 comments on commit f85be25

Please sign in to comment.