Upgrade NodeJs and Nginx (#2227)
This commit is contained in:
@@ -21,15 +21,15 @@ jobs:
|
||||
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Use Node.js 19
|
||||
- name: Use Node.js 22
|
||||
uses: actions/setup-node@v1
|
||||
with:
|
||||
# no support for lts as of now with github actions.
|
||||
# issue link : https://github.com/actions/setup-node/issues/26
|
||||
# lts/gallium node v19.7.0 (npm v9.5.0)
|
||||
node-version: '19.7.0'
|
||||
node-version: '22.9.0'
|
||||
- name: Angular CLI install
|
||||
run: npm install -g --silent @angular/cli@14.2.12
|
||||
run: npm install -g --silent @angular/cli@16.0.2
|
||||
|
||||
- name: Npm install
|
||||
run: npm install
|
||||
|
||||
+3
-3
@@ -1,8 +1,8 @@
|
||||
###############
|
||||
### STAGE 1: Build app
|
||||
###############
|
||||
ARG BUILDER_IMAGE=node:19-alpine
|
||||
ARG NGINX_IMAGE=nginx:1.19.3
|
||||
ARG BUILDER_IMAGE=node:22.9.0-alpine
|
||||
ARG NGINX_IMAGE=nginx:1.27.3
|
||||
|
||||
FROM $BUILDER_IMAGE as builder
|
||||
ARG NPM_REGISTRY_URL=https://registry.npmjs.org/
|
||||
@@ -33,7 +33,7 @@ RUN npm cache clear --force
|
||||
RUN npm config set fetch-retry-maxtimeout 120000
|
||||
RUN npm config set registry $NPM_REGISTRY_URL --location=global
|
||||
|
||||
RUN npm install --location=global @angular/cli@14.2.12
|
||||
RUN npm install --location=global @angular/cli@16.0.2
|
||||
|
||||
RUN npm install
|
||||
|
||||
|
||||
@@ -14,12 +14,12 @@ The latest code is continuously deployed at https://openmf.github.io/web-app/ wh
|
||||
|
||||
[`git`](https://git-scm.com/downloads)
|
||||
|
||||
[`npm`](https://nodejs.org/en/download/)
|
||||
[`nodeJs`](https://nodejs.org/en/download/)
|
||||
|
||||
2. Install [angular-cli](https://github.com/angular/angular-cli) globally.
|
||||
3. Install [angular-cli](https://github.com/angular/angular-cli) globally.
|
||||
|
||||
```
|
||||
npm install -g @angular/cli@14.2.12
|
||||
npm install -g @angular/cli@16.0.2
|
||||
```
|
||||
|
||||
3. Clone the project locally into your system.
|
||||
|
||||
Reference in New Issue
Block a user