Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,15 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
# jsdom 30 needs Node.js ^22.22.2, ^24.15.0 or >=26. setup-node takes the newest release of each line.
# jsdom 30 needs Node.js ^22.22.2, ^24.15.0 or >=26. With check-latest, setup-node uses the
# newest release of each line, also when the runner has an older one in its cache
node: [22, 24, 26]
steps:
- uses: actions/checkout@v7
- uses: actions/setup-node@v7
with:
node-version: ${{ matrix.node }}
check-latest: true
cache: npm
- run: npm ci
- run: npm run lint
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,10 @@ jobs:
exit 1
fi

# jsdom 30, which the tests use, needs Node.js 24.15.0 or newer on the 24 line
- uses: actions/setup-node@v7
with:
node-version: 24
node-version: '>=24.15.0 <25'
package-manager-cache: false

- run: npm ci
Expand Down Expand Up @@ -84,7 +85,7 @@ jobs:

- uses: actions/setup-node@v7
with:
node-version: 24
node-version: '>=24.15.0 <25'
registry-url: https://registry.npmjs.org
package-manager-cache: false

Expand Down
Loading