Skip to content

Commit e4bf5cc

Browse files
committed
Drops support for Node.js <16 (EOL 2022-10-18), updates commander 10.0.1 -> 11.1.0. Updates GH actions
1 parent d1fd7db commit e4bf5cc

File tree

3 files changed

+44
-20
lines changed

3 files changed

+44
-20
lines changed

.github/workflows/test.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ jobs:
99
pre-test:
1010
runs-on: ubuntu-latest
1111
steps:
12-
- uses: actions/checkout@v3
13-
- uses: actions/setup-node@v3
12+
- uses: actions/checkout@v5
13+
- uses: actions/setup-node@v6
1414
with:
1515
cache: 'npm'
1616

@@ -25,11 +25,11 @@ jobs:
2525
strategy:
2626
matrix:
2727
os: ['ubuntu-latest', 'windows-latest']
28-
node: ['14.18.0']
28+
node: ['16.0']
2929
name: Testing Node ${{ matrix.node }} on ${{ matrix.os }}
3030
steps:
31-
- uses: actions/checkout@v3
32-
- uses: actions/setup-node@v3
31+
- uses: actions/checkout@v5
32+
- uses: actions/setup-node@v6
3333
with:
3434
cache: 'npm'
3535

@@ -43,21 +43,21 @@ jobs:
4343
strategy:
4444
matrix:
4545
os: ['ubuntu-latest', 'windows-latest']
46-
node: ['14.18.0', '16.0', '18.0', '20.0']
46+
node: ['16.0', '18.0', '20.0', '22.0']
4747
name: Testing Node ${{ matrix.node }} on ${{ matrix.os }}
4848
steps:
49-
- uses: actions/checkout@v3
50-
- uses: actions/setup-node@v3
49+
- uses: actions/checkout@v5
50+
- uses: actions/setup-node@v6
5151
with:
5252
node-version: ${{ matrix.node }}
5353
cache: 'npm'
5454
- run: git config --global user.name "MetalsmithCI" && git config --global user.email "ci@metalsmith.io" && git config --global init.defaultBranch main
5555
- run: npm install --no-package-lock
5656
- run: npm test
5757
- run: npm run test:types
58-
- if: matrix.os == 'ubuntu-latest' && matrix.node == '18.0'
58+
- if: matrix.os == 'ubuntu-latest' && matrix.node == '22.0'
5959
run: npm run coverage
60-
- if: matrix.os == 'ubuntu-latest' && matrix.node == '18.0'
60+
- if: matrix.os == 'ubuntu-latest' && matrix.node == '22.0'
6161
uses: coverallsapp/github-action@v2
6262
with:
6363
file: ./coverage.info

package-lock.json

Lines changed: 31 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,12 +61,13 @@
6161
},
6262
"dependencies": {
6363
"chokidar": "^4.0.3",
64-
"commander": "^10.0.1",
64+
"commander": "^11.1.0",
6565
"debug": "^4.4.3",
6666
"gray-matter": "^4.0.3",
6767
"is-utf8": "~0.2.0",
6868
"lodash.clonedeepwith": "^4.5.0",
6969
"micromatch": "^4.0.5",
70+
"pnpm": "^10.28.2",
7071
"stat-mode": "^1.0.0",
7172
"ware": "^1.3.0"
7273
},
@@ -92,6 +93,6 @@
9293
"typescript": "^5.6.2"
9394
},
9495
"engines": {
95-
"node": ">=14.18.0"
96+
"node": ">=16.0.0"
9697
}
9798
}

0 commit comments

Comments
 (0)