From d9e6de67c4aa360b5247829d03738c37b5b6eece Mon Sep 17 00:00:00 2001 From: Alejandro Date: Thu, 5 Nov 2026 12:36:59 +0100 Subject: [PATCH] ci: build and publish on Node 22, test on 22 and 24 Node 20 is end-of-life and gets no fix in the Node.js 2026-11-11 security release. engines stays >=20. --- .github/workflows/ci.yml | 7 +++++-- .github/workflows/publish.yml | 4 ++-- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 77bd964..4abcd70 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -7,6 +7,9 @@ on: jobs: test: runs-on: ubuntu-latest + strategy: + matrix: + node-version: ['22', '24'] steps: - uses: actions/checkout@v4 @@ -17,7 +20,7 @@ jobs: - name: Setup Node.js uses: actions/setup-node@v4 with: - node-version: '20' + node-version: ${{ matrix.node-version }} cache: 'pnpm' - name: Install dependencies @@ -64,7 +67,7 @@ jobs: uses: actions/setup-node@v4 if: ${{ steps.check-secrets.outputs.run_e2e_tests == 'true' }} with: - node-version: '20' + node-version: '22' cache: 'pnpm' - name: Install dependencies diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 8085475..7235051 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -21,7 +21,7 @@ jobs: - name: Setup Node.js uses: actions/setup-node@v4 with: - node-version: '20' + node-version: '22' cache: 'pnpm' registry-url: 'https://registry.npmjs.org' @@ -52,7 +52,7 @@ jobs: - name: Setup Node.js uses: actions/setup-node@v4 with: - node-version: '20' + node-version: '22' cache: 'pnpm' registry-url: 'https://registry.npmjs.org'