From 9bfac0914c8c353e82958cad1e613e0f120e2cbf Mon Sep 17 00:00:00 2001 From: James Hadfield Date: Tue, 13 Jun 2023 14:40:45 +1200 Subject: [PATCH] Add support for Node.js version 20 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit v20 is the current version, with scheduled end-of-life 2026-04-30¹. The associated npm version (as of node v20.3.0) is still npm v9². ¹ https://github.com/nodejs/release#release-schedule ² https://nodejs.org/dist/index.json --- .github/workflows/ci.yaml | 8 ++++---- package-lock.json | 2 +- package.json | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 0b6a0a1c8..758affa13 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -12,7 +12,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - node: [16, 18] + node: [16, 18, 20] steps: - uses: actions/checkout@v3 - uses: actions/setup-node@v3 @@ -26,7 +26,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - node: [16, 18] + node: [16, 18, 20] steps: - uses: actions/checkout@v3 - uses: actions/setup-node@v3 @@ -43,7 +43,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - node: [16, 18] + node: [16, 18, 20] steps: - uses: actions/checkout@v3 - uses: actions/setup-node@v3 @@ -57,7 +57,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - node: [16, 18] + node: [16, 18, 20] steps: - uses: actions/checkout@v3 - uses: actions/setup-node@v3 diff --git a/package-lock.json b/package-lock.json index 802b1920a..d8ef446a6 100644 --- a/package-lock.json +++ b/package-lock.json @@ -116,7 +116,7 @@ "typescript": "^5.0.2" }, "engines": { - "node": "^16 || ^18", + "node": "^16 || ^18 || ^20", "npm": "^7 || ^8 || ^9" } }, diff --git a/package.json b/package.json index 09185626b..a4c002077 100644 --- a/package.json +++ b/package.json @@ -7,7 +7,7 @@ "repository": "github:nextstrain/auspice", "homepage": "https://www.npmjs.com/package/auspice", "engines": { - "node": "^16 || ^18", + "node": "^16 || ^18 || ^20", "npm": "^7 || ^8 || ^9" }, "bin": {