Upgrade to Node LTS (#1072)

This commit is contained in:
Matt 2025-11-07 17:00:03 +00:00 • committed by GitHub
commit 6f20663b75
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -18,19 +18,35 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 18
node-version: 24
cache: npm
- run: npm ci
- run: npm run check
- run: npm run build
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
node-version: [18, 24]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: npm
- run: npm ci
- run: npm test
publish:
runs-on: ubuntu-latest
if: github.event_name == 'release'
environment: release
needs: build
needs: [build, test]
permissions:
contents: read
@ -40,7 +56,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 18
node-version: 24
cache: npm
registry-url: 'https://registry.npmjs.org'