From c7cae7a5a31a14262c29ae8a3c9b3268a709d15b Mon Sep 17 00:00:00 2001 From: Bert De Block Date: Fri, 22 Mar 2024 12:13:21 +0100 Subject: [PATCH] Update Node support (drop v16, test against v20 and v21) --- .github/workflows/ci.yml | 14 +++++++------- .github/workflows/release.yml | 2 +- package.json | 2 +- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5224bf52..70920fb9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -21,7 +21,7 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-node@v3 with: - node-version: 16 + node-version: 18 - run: yarn install - run: yarn lint @@ -35,7 +35,7 @@ jobs: - name: Install Node uses: actions/setup-node@v3 with: - node-version: 16.x + node-version: 18 cache: yarn - name: Install Dependencies run: yarn install --frozen-lockfile @@ -51,7 +51,7 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-node@v3 with: - node-version: 16.x + node-version: 18 cache: yarn - name: Install Dependencies run: yarn install --no-lockfile @@ -135,7 +135,7 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-node@v3 with: - node-version: 16 + node-version: 18 - name: install deps run: yarn install @@ -152,7 +152,7 @@ jobs: strategy: fail-fast: false matrix: - node: ['16', '18'] + node: [18, 20, 21] name: Smoke Tests (Node v${{ matrix.node }} with npm) runs-on: ubuntu-latest @@ -180,7 +180,7 @@ jobs: strategy: fail-fast: false matrix: - node: ['16', '18'] + node: [18, 20, 21] name: Smoke Tests (Node v${{ matrix.node }} with yarn) runs-on: ubuntu-latest @@ -217,7 +217,7 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-node@v3 with: - node-version: 16 + node-version: 18 - name: install deps run: yarn install diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 4fb736da..ebb21c52 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -15,7 +15,7 @@ jobs: - uses: actions/setup-node@v1 with: registry-url: 'https://registry.npmjs.org' - node-version: 16 + node-version: 18 - name: auto-dist-tag run: npx auto-dist-tag@1 --write diff --git a/package.json b/package.json index 9d788135..a6505b03 100644 --- a/package.json +++ b/package.json @@ -64,7 +64,7 @@ "tmp-sync": "^1.1.0" }, "engines": { - "node": "16.* || >= 18.*" + "node": ">= 18" }, "publishConfig": { "registry": "https://registry.npmjs.org"