From dae9b734b0e76248111bc3669e680fca10910a7f Mon Sep 17 00:00:00 2001 From: lena-sabadina Date: Fri, 23 Oct 2026 10:53:17 +0200 Subject: [PATCH] ci: build and publish on Node 22 and 24 Node 18 and 20 are past end of life, and tsup 9 (#33) needs Node ^22.18 or ^24.11: on 18 the build fails with ERR_REQUIRE_ESM, and 20 is outside its supported range. The test matrix moves to 22 and 24, and the build and publish jobs to 22. The package's engines field is unchanged: tsup only runs at build time, so apps installing the package are unaffected. --- .github/workflows/ci.yml | 4 ++-- .github/workflows/publish.yml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 92c4d4e..7fef034 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -12,7 +12,7 @@ jobs: strategy: matrix: - node-version: [18, 20, 22] + node-version: [22, 24] steps: - uses: actions/checkout@v7 @@ -47,7 +47,7 @@ jobs: - name: Setup Node.js uses: actions/setup-node@v7 with: - node-version: 20 + node-version: 22 - name: Install dependencies run: npm install diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index dab8e3f..fad5ce2 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -14,7 +14,7 @@ jobs: - name: Setup Node.js uses: actions/setup-node@v7 with: - node-version: 20 + node-version: 22 registry-url: 'https://registry.npmjs.org' - name: Install dependencies