Skip to content

Commit 0289e42

Browse files
authored
Bump node to v20 (#5107)
1 parent 099f63f commit 0289e42

11 files changed

+20
-20
lines changed

.github/workflows/automerge.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ jobs:
1313
- name: "Checkout ansible-hub-ui (${{ github.ref }})"
1414
uses: actions/checkout@v4
1515

16-
- name: "Install node 18"
16+
- name: "Install node 20"
1717
uses: actions/setup-node@v4
1818
with:
19-
node-version: '18'
19+
node-version: '20'
2020

2121
- name: "Check automerge conditions"
2222
working-directory: ".github/workflows"

.github/workflows/cypress.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -117,10 +117,10 @@ jobs:
117117
working-directory: 'oci_env'
118118
run: 'oci-env compose up &'
119119

120-
- name: "Install node 18"
120+
- name: "Install node 20"
121121
uses: actions/setup-node@v4
122122
with:
123-
node-version: '18'
123+
node-version: '20'
124124

125125
- name: "Cache ~/.npm & ~/.cache/Cypress"
126126
uses: actions/cache@v4

.github/workflows/dev-release.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,10 @@ jobs:
2323
- name: "Checkout ansible-hub-ui (${{ github.ref }})"
2424
uses: actions/checkout@v4
2525

26-
- name: "Install node 18"
26+
- name: "Install node 20"
2727
uses: actions/setup-node@v4
2828
with:
29-
node-version: '18'
29+
node-version: '20'
3030

3131
- name: "Update the dev tag"
3232
run: |

.github/workflows/pr-checks.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ jobs:
1313
- name: "Checkout ansible-hub-ui (${{ github.ref }})"
1414
uses: actions/checkout@v4
1515

16-
- name: "Install node 18"
16+
- name: "Install node 20"
1717
uses: actions/setup-node@v4
1818
with:
19-
node-version: '18'
19+
node-version: '20'
2020
cache: 'npm'
2121

2222
- name: "Install python 3.11"
@@ -93,10 +93,10 @@ jobs:
9393
with:
9494
path: 'pr'
9595

96-
- name: "Install node 18"
96+
- name: "Install node 20"
9797
uses: actions/setup-node@v4
9898
with:
99-
node-version: '18'
99+
node-version: '20'
100100
cache: 'npm'
101101
cache-dependency-path: |
102102
base/package-lock.json

.github/workflows/stable-release.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,10 @@ jobs:
2929
RELEASE_TAG=`sed 's/^refs\/tags\///' <<< $GITHUB_REF`
3030
echo "RELEASE_TAG=${RELEASE_TAG}" >> $GITHUB_ENV
3131
32-
- name: "Install node 18"
32+
- name: "Install node 20"
3333
uses: actions/setup-node@v4
3434
with:
35-
node-version: '18'
35+
node-version: '20'
3636

3737
- name: "Cache ~/.npm"
3838
uses: actions/cache@v4

Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# WARNING
22
# This Dockerfile is intended for development purposes only. Do not use it for production deployments
33

4-
FROM node:18-alpine
4+
FROM node:20-alpine
55
WORKDIR /hub/
66

77
RUN mkdir -p /hub/app/ && \

build_deploy.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export WORKSPACE=${WORKSPACE:-$APP_ROOT} # if running in jenkins, use the build'
99
export APP_ROOT=$(pwd)
1010
COMMON_BUILDER=https://raw.githubusercontent.com/RedHatInsights/insights-frontend-builder-common/master
1111

12-
export NODE_BUILD_VERSION=18
12+
export NODE_BUILD_VERSION=20
1313
export IMAGE="quay.io/cloudservices/ansible-hub-ui"
1414

1515
set -exv

community/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM node:18-alpine
1+
FROM node:20-alpine
22
WORKDIR /workspace/
33
RUN mkdir -p /workspace/ && \
44
apk add --no-cache git

package-lock.json

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@
105105
"appname": "automation-hub"
106106
},
107107
"engines": {
108-
"node": ">=18",
109-
"npm": ">=9"
108+
"node": ">=20",
109+
"npm": ">=10"
110110
}
111111
}

pr_check.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export COMPONENT="automation-hub"
88
export WORKSPACE=${WORKSPACE:-$APP_ROOT} # if running in jenkins, use the build's workspace
99
export APP_ROOT=$(pwd)
1010
COMMON_BUILDER=https://raw.githubusercontent.com/RedHatInsights/insights-frontend-builder-common/master
11-
export NODE_BUILD_VERSION=18
11+
export NODE_BUILD_VERSION=20
1212

1313
export APP_NAME="automation-hub" # name of app-sre "application" folder this component lives in
1414
export COMPONENT_NAME="automation-hub" # name of app-sre "resourceTemplate" in deploy.yaml for this component

0 commit comments

Comments
 (0)