Browse Source

Upgrade node version from ^18.0.0 to ^20.0.0 (#2051)

* node version

* Update node in dockerfile
pull/2048/head v0.3.81
kosiakkatrina 1 year ago committed by GitHub
parent
commit
3d9e29ebf8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      .github/workflows/paas_only_production_pipeline.yml
  2. 6
      .github/workflows/paas_only_staging_pipeline.yml
  3. 6
      .github/workflows/production_pipeline.yml
  4. 6
      .github/workflows/staging_pipeline.yml
  5. 2
      .nvmrc
  6. 2
      Dockerfile
  7. 2
      package.json

6
.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: |

6
.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: |

6
.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: |

6
.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: |

2
.nvmrc

@ -1 +1 @@
18
20

2
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

2
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",

Loading…
Cancel
Save