From 0801555cf5f910ba31fb452ca6c8b26e73efbfba Mon Sep 17 00:00:00 2001 From: Jose Alberto Hernandez Date: Wed, 29 Jun 2022 14:01:18 -0500 Subject: [PATCH] Set a LTS node version to 16 --- .github/workflows/build.yml | 17 +++++++++-------- package.json | 4 ++-- 2 files changed, 11 insertions(+), 10 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 565d9e11a..ddfe7ecf8 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,6 +1,6 @@ name: build-run -# Controls when the action will run. +# Controls when the action will run. on: # Triggers the workflow on push or pull request events but only for the main branch push: @@ -13,7 +13,7 @@ jobs: # This workflow contains a single job called "build" build: # The type of runner that the job will run on - name: Run Lint and Deploy + name: Run Lint and Deploy runs-on: ubuntu-latest # 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 - uses: actions/checkout@v2 - - name: Use Node.js 14 + - name: Use Node.js 16 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 - node-version: '14' + # lts/gallium node v16.15.1 (npm v8.11.0) + node-version: '16.15.1' - 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 run: npm install @@ -48,6 +49,6 @@ jobs: FOLDER: dist/web-app #without preserve it only builds if you have untracked files PRESERVE: true - # github user name and email shows up in the logs, - # so it would be better to make it silent. - SILENT: true + # github user name and email shows up in the logs, + # so it would be better to make it silent. + SILENT: true diff --git a/package.json b/package.json index 787341ebc..ed2306bde 100644 --- a/package.json +++ b/package.json @@ -96,7 +96,7 @@ "url": "https://github.com/openMF/web-app/issues" }, "engines": { - "node": ">= 8.9.0", - "npm": ">= 5.5.1" + "node": ">= 16.15.1", + "npm": ">= 9.11.0" } }