Merge pull request #1456 from josehernandezfintecheandomx/enhancement/node_version
Set a LTS node version to 16
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
name: build-run
|
name: build-run
|
||||||
|
|
||||||
# Controls when the action will run.
|
# Controls when the action will run.
|
||||||
on:
|
on:
|
||||||
# Triggers the workflow on push or pull request events but only for the main branch
|
# Triggers the workflow on push or pull request events but only for the main branch
|
||||||
push:
|
push:
|
||||||
@@ -13,7 +13,7 @@ jobs:
|
|||||||
# This workflow contains a single job called "build"
|
# This workflow contains a single job called "build"
|
||||||
build:
|
build:
|
||||||
# The type of runner that the job will run on
|
# The type of runner that the job will run on
|
||||||
name: Run Lint and Deploy
|
name: Run Lint and Deploy
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
# Steps represent a sequence of tasks that will be executed as part of the job
|
# Steps represent a sequence of tasks that will be executed as part of the job
|
||||||
@@ -21,14 +21,15 @@ jobs:
|
|||||||
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
|
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
|
||||||
- name: Use Node.js 14
|
- name: Use Node.js 16
|
||||||
uses: actions/setup-node@v1
|
uses: actions/setup-node@v1
|
||||||
with:
|
with:
|
||||||
# no support for lts as of now with github actions.
|
# no support for lts as of now with github actions.
|
||||||
# issue link : https://github.com/actions/setup-node/issues/26
|
# issue link : https://github.com/actions/setup-node/issues/26
|
||||||
node-version: '14'
|
# lts/gallium node v16.15.1 (npm v8.11.0)
|
||||||
|
node-version: '16.15.1'
|
||||||
- name: Angular CLI install
|
- name: Angular CLI install
|
||||||
run : npm install -g --silent @angular/cli@9.1.12
|
run : npm install -g --silent @angular/cli@11.2.14
|
||||||
|
|
||||||
- name: Npm install
|
- name: Npm install
|
||||||
run: npm install
|
run: npm install
|
||||||
@@ -48,6 +49,6 @@ jobs:
|
|||||||
FOLDER: dist/web-app
|
FOLDER: dist/web-app
|
||||||
#without preserve it only builds if you have untracked files
|
#without preserve it only builds if you have untracked files
|
||||||
PRESERVE: true
|
PRESERVE: true
|
||||||
# github user name and email shows up in the logs,
|
# github user name and email shows up in the logs,
|
||||||
# so it would be better to make it silent.
|
# so it would be better to make it silent.
|
||||||
SILENT: true
|
SILENT: true
|
||||||
|
|||||||
+2
-2
@@ -96,7 +96,7 @@
|
|||||||
"url": "https://github.com/openMF/web-app/issues"
|
"url": "https://github.com/openMF/web-app/issues"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">= 8.9.0",
|
"node": ">= 16.15.1",
|
||||||
"npm": ">= 5.5.1"
|
"npm": ">= 9.11.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user