Skip to content

Commit e516957

Browse files
committed
introduce Node 26
Node 26 has been released. This commit updates the GitHub Actions workflows to leverage. It is worth noting that c8 (yargs more specifically) is broken on Node 26. The change that caused the problem in Node 25 was reverted on that branch, but still exists in Node 26.
1 parent d8e3dfb commit e516957

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ jobs:
4141
- name: Setup Node
4242
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
4343
with:
44-
node-version: '25'
44+
node-version: '26'
4545
registry-url: 'https://registry.npmjs.org'
4646
- name: Install dependencies
4747
run: npm install

.github/workflows/test.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
contents: read
3434
strategy:
3535
matrix:
36-
node: ['25', '24', '22']
36+
node: ['26', '25', '24', '22']
3737
name: Node ${{ matrix.node }} validation
3838
steps:
3939
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
@@ -46,12 +46,12 @@ jobs:
4646
# and package-lock.json. Needs to run before npm install
4747
- run: node version-check.js
4848
- run: npm ci
49-
# Node 25 has a known incompatibility: extension-less files in "type: module"
49+
# Node 26 has a known incompatibility: extension-less files in "type: module"
5050
# packages are treated as ESM, causing c8's require('yargs/yargs') to fail.
51-
# Fall back to plain unit tests without coverage on Node 25 until upstream fixes this.
52-
- if: matrix.node != '25'
51+
# Fall back to plain unit tests without coverage on Node 26 until upstream fixes this.
52+
- if: matrix.node != '26'
5353
run: npm test
54-
- if: matrix.node == '25'
54+
- if: matrix.node == '26'
5555
run: npm run test-no-coverage
5656
- run: npm run lint
5757
- run: npm audit --audit-level=critical

0 commit comments

Comments
 (0)