From a7c4b9ac0c5630310e6e647ae4ebc6e074dd5444 Mon Sep 17 00:00:00 2001 From: "Shaun A. Noordin" Date: Tue, 31 Oct 2023 15:42:29 +0000 Subject: [PATCH] Upgrade to Node 20 (#201) * Use Node 20 * npm install, update package-lock.json --- .github/workflows/build_branch.yml | 2 +- .github/workflows/deploy_production.yml | 2 +- .github/workflows/run_tests.yml | 4 ++-- README.md | 2 +- package-lock.json | 4 ++-- package.json | 4 ++-- 6 files changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/workflows/build_branch.yml b/.github/workflows/build_branch.yml index e53bd459..58d30963 100644 --- a/.github/workflows/build_branch.yml +++ b/.github/workflows/build_branch.yml @@ -13,6 +13,6 @@ jobs: uses: zooniverse/ci-cd/.github/workflows/npm_build.yaml@main with: commit_id: ${{ github.sha }} - node_version: 'lts/hydrogen' + node_version: 'lts/iron' output: 'dist' script: 'build' diff --git a/.github/workflows/deploy_production.yml b/.github/workflows/deploy_production.yml index d89984d3..f8514006 100644 --- a/.github/workflows/deploy_production.yml +++ b/.github/workflows/deploy_production.yml @@ -15,7 +15,7 @@ jobs: uses: zooniverse/ci-cd/.github/workflows/npm_build.yaml@main with: commit_id: ${{ github.sha }} - node_version: 'lts/hydrogen' + node_version: 'lts/iron' output: 'dist' script: 'build' diff --git a/.github/workflows/run_tests.yml b/.github/workflows/run_tests.yml index 17b455eb..9bdb5502 100644 --- a/.github/workflows/run_tests.yml +++ b/.github/workflows/run_tests.yml @@ -15,10 +15,10 @@ jobs: - name: Checkout repo uses: actions/checkout@v3 - - name: Use Node.js 18 + - name: Use Node.js 20 uses: actions/setup-node@v3 with: - node-version: 'lts/hydrogen' + node-version: 'lts/iron' - run: npm ci - run: npm test diff --git a/README.md b/README.md index 2831e06b..4dfb6dd5 100644 --- a/README.md +++ b/README.md @@ -87,7 +87,7 @@ FYI, the Community Catalog's _intended launch project_ is "How Did We Get Here?" This project is a React website that connects to various Zooniverse databases/services. Requires: -- node 18 and npm 9 +- node 20 and npm 10 External requirements: - `zooniverse.org`: required for user auth. diff --git a/package-lock.json b/package-lock.json index 070eb7ac..67472386 100644 --- a/package-lock.json +++ b/package-lock.json @@ -42,8 +42,8 @@ "webpack-dev-server": "^4.15.1" }, "engines": { - "node": ">= 18", - "npm": ">= 9" + "node": ">= 20", + "npm": ">= 10" } }, "node_modules/@adobe/css-tools": { diff --git a/package.json b/package.json index ebe49a6d..b0be22d4 100644 --- a/package.json +++ b/package.json @@ -58,7 +58,7 @@ "trim": "^1.0.1" }, "engines": { - "node": ">= 18", - "npm": ">= 9" + "node": ">= 20", + "npm": ">= 10" } }