From 3d9e29ebf86e27369624e68b4686eb8214877678 Mon Sep 17 00:00:00 2001 From: kosiakkatrina <54268893+kosiakkatrina@users.noreply.github.com> Date: Thu, 23 Nov 2023 11:39:32 +0000 Subject: [PATCH] Upgrade node version from ^18.0.0 to ^20.0.0 (#2051) * node version * Update node in dockerfile --- .github/workflows/paas_only_production_pipeline.yml | 6 +++--- .github/workflows/paas_only_staging_pipeline.yml | 6 +++--- .github/workflows/production_pipeline.yml | 6 +++--- .github/workflows/staging_pipeline.yml | 6 +++--- .nvmrc | 2 +- Dockerfile | 2 +- package.json | 2 +- 7 files changed, 15 insertions(+), 15 deletions(-) diff --git a/.github/workflows/paas_only_production_pipeline.yml b/.github/workflows/paas_only_production_pipeline.yml index 0be6e9885..f7c21e3be 100644 --- a/.github/workflows/paas_only_production_pipeline.yml +++ b/.github/workflows/paas_only_production_pipeline.yml @@ -53,7 +53,7 @@ jobs: uses: actions/setup-node@v3 with: cache: yarn - node-version: 18 + node-version: 20 - name: Create database run: | @@ -111,7 +111,7 @@ jobs: uses: actions/setup-node@v3 with: cache: yarn - node-version: 18 + node-version: 20 - name: Create database run: | @@ -142,7 +142,7 @@ jobs: uses: actions/setup-node@v3 with: cache: yarn - node-version: 18 + node-version: 20 - name: Install packages and symlink local dependencies run: | diff --git a/.github/workflows/paas_only_staging_pipeline.yml b/.github/workflows/paas_only_staging_pipeline.yml index d25b7d1ca..5534052da 100644 --- a/.github/workflows/paas_only_staging_pipeline.yml +++ b/.github/workflows/paas_only_staging_pipeline.yml @@ -53,7 +53,7 @@ jobs: uses: actions/setup-node@v3 with: cache: yarn - node-version: 18 + node-version: 20 - name: Create database run: | @@ -111,7 +111,7 @@ jobs: uses: actions/setup-node@v3 with: cache: yarn - node-version: 18 + node-version: 20 - name: Create database run: | @@ -142,7 +142,7 @@ jobs: uses: actions/setup-node@v3 with: cache: yarn - node-version: 18 + node-version: 20 - name: Install packages and symlink local dependencies run: | diff --git a/.github/workflows/production_pipeline.yml b/.github/workflows/production_pipeline.yml index 79f2c384a..52540e92b 100644 --- a/.github/workflows/production_pipeline.yml +++ b/.github/workflows/production_pipeline.yml @@ -70,7 +70,7 @@ jobs: uses: actions/setup-node@v3 with: cache: yarn - node-version: 18 + node-version: 20 - name: Create database run: | @@ -129,7 +129,7 @@ jobs: uses: actions/setup-node@v3 with: cache: yarn - node-version: 18 + node-version: 20 - name: Create database run: | @@ -171,7 +171,7 @@ jobs: uses: actions/setup-node@v3 with: cache: yarn - node-version: 18 + node-version: 20 - name: Install packages and symlink local dependencies run: | diff --git a/.github/workflows/staging_pipeline.yml b/.github/workflows/staging_pipeline.yml index f7a676dd3..ee9a45d40 100644 --- a/.github/workflows/staging_pipeline.yml +++ b/.github/workflows/staging_pipeline.yml @@ -60,7 +60,7 @@ jobs: uses: actions/setup-node@v3 with: cache: yarn - node-version: 18 + node-version: 20 - name: Create database run: | @@ -118,7 +118,7 @@ jobs: uses: actions/setup-node@v3 with: cache: yarn - node-version: 18 + node-version: 20 - name: Create database run: | @@ -149,7 +149,7 @@ jobs: uses: actions/setup-node@v3 with: cache: yarn - node-version: 18 + node-version: 20 - name: Install packages and symlink local dependencies run: | diff --git a/.nvmrc b/.nvmrc index 3c032078a..209e3ef4b 100644 --- a/.nvmrc +++ b/.nvmrc @@ -1 +1 @@ -18 +20 diff --git a/Dockerfile b/Dockerfile index b1b7ea9a4..da6d4ba6f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -10,7 +10,7 @@ RUN apk add --update --no-cache tzdata && \ # build-base: compilation tools for bundle # yarn: node package manager # postgresql-dev: postgres driver and libraries -RUN apk add --no-cache build-base=0.5-r3 yarn=1.22.19-r0 postgresql13-dev=13.13-r0 git=2.40.1-r0 bash=5.2.15-r5 +RUN apk add --no-cache build-base=0.5-r3 nodejs-current=20.8.1-r0 yarn=1.22.19-r0 postgresql13-dev=13.13-r0 git=2.40.1-r0 bash=5.2.15-r5 # Bundler version should be the same version as what the Gemfile.lock was bundled with RUN gem install bundler:2.3.14 --no-document diff --git a/package.json b/package.json index df181a84b..bfc106d9a 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "data-collector", "private": true, "engines": { - "node": "^18.0.0" + "node": "^20.0.0" }, "dependencies": { "@babel/core": "^7.17.7",