From 479f75cdbe12b3f9139c21f1287f3b3179ec0de0 Mon Sep 17 00:00:00 2001 From: Victor Lin <13424970+victorlin@users.noreply.github.com> Date: Tue, 27 Sep 2022 11:09:04 -0700 Subject: [PATCH] Use Node.js version 18 Although the current version (14) is still in active LTS status, the latest LTS version comes with performance improvements [1]. The performance improvements from version 16 should also apply [2]. Also update the npm version to a minimum of 8.6.0 since it corresponds with Node.js 18.0.0 per https://nodejs.org/en/download/releases/. [1]: https://nodejs.org/en/blog/release/v18.0.0/ [2]: https://nodejs.org/en/blog/release/v16.0.0/ --- .github/workflows/ci.yml | 2 +- .github/workflows/update-dataset-listings.yml | 2 +- .github/workflows/update-search.yml | 2 +- package.json | 4 ++-- static-site/package.json | 4 ++-- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0d19ecd63..dd0c92de1 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -8,7 +8,7 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-node@v3 with: - node-version: '14' + node-version: '18' - run: node --version - run: npm ci - run: npm run build diff --git a/.github/workflows/update-dataset-listings.yml b/.github/workflows/update-dataset-listings.yml index 40067fd1c..54403c612 100644 --- a/.github/workflows/update-dataset-listings.yml +++ b/.github/workflows/update-dataset-listings.yml @@ -15,7 +15,7 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-node@v3 with: - node-version: '14' + node-version: '18' - run: npm ci - uses: nextstrain/.github/actions/setup-nextstrain-cli@master # configure AWS necessary for `collect-datasets.js` and `nextstrain remote upload` diff --git a/.github/workflows/update-search.yml b/.github/workflows/update-search.yml index 091bfe88a..000c829f2 100644 --- a/.github/workflows/update-search.yml +++ b/.github/workflows/update-search.yml @@ -21,7 +21,7 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-node@v3 with: - node-version: '14' + node-version: '18' - run: npm ci - uses: nextstrain/.github/actions/setup-nextstrain-cli@master # configure AWS necessary for `collect-search-results.js` and `nextstrain remote upload` diff --git a/package.json b/package.json index d364e93cc..d8bd81111 100644 --- a/package.json +++ b/package.json @@ -8,8 +8,8 @@ "repository": "github:nextstrain/nextstrain.org", "homepage": "https://nextstrain.org", "engines": { - "node": "^14", - "npm": "^6.14" + "node": "^18", + "npm": "^8.6.0" }, "scripts": { "build": "./build.sh", diff --git a/static-site/package.json b/static-site/package.json index e72e82543..e39137682 100644 --- a/static-site/package.json +++ b/static-site/package.json @@ -11,8 +11,8 @@ "license": "MIT", "main": "n/a", "engines": { - "node": "^14", - "npm": "^6.14" + "node": "^18", + "npm": "^8.6.0" }, "scripts": { "develop": "gatsby develop",