From 591154a6dd8009209c36ba22ea6d393fd0822239 Mon Sep 17 00:00:00 2001 From: Anthony Moraghan Date: Mon, 13 Jun 2022 17:03:06 +0800 Subject: [PATCH] ajm/temp fix for node v16 (#1878) * temporary fix for blueprint issue on node v16 plus add n 12 n 14 and n 16 * temporary node-sass fix for node v16 * change so that github action uses node 14 --- .github/workflows/continuous_integration.yml | 6 +++--- Jenkinsfile | 6 +++++- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/.github/workflows/continuous_integration.yml b/.github/workflows/continuous_integration.yml index 8b8e08a66a..82243a7b45 100644 --- a/.github/workflows/continuous_integration.yml +++ b/.github/workflows/continuous_integration.yml @@ -4,10 +4,10 @@ jobs: check-formatting: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - uses: actions/setup-node@v2 + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 with: - node-version: '16' + node-version: '14' cache: 'npm' - run: npm install - run: npm run checkformat diff --git a/Jenkinsfile b/Jenkinsfile index e7b0143fe3..bd04e673e1 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -25,6 +25,7 @@ pipeline { unstash "protobuf" unstash "wasm_libs" sh 'rm -rf node_modules build' + sh 'n 12' sh 'n exec 12 node -v' sh 'n exec 12 npm install' sh 'n exec 12 npm run build-docker' @@ -40,6 +41,7 @@ pipeline { unstash "protobuf" unstash "wasm_libs" sh 'rm -rf node_modules build' + sh 'n 14' sh 'n exec 14 node -v' sh 'n exec 14 npm install' sh 'n exec 14 npm run build-docker' @@ -55,8 +57,10 @@ pipeline { unstash "protobuf" unstash "wasm_libs" sh 'rm -rf node_modules build' + sh 'n 16' sh 'n exec 16 node -v' - sh 'n exec 16 npm install' + sh 'n exec 16 npm uninstall node-sass --legacy-peer-deps' + sh 'n exec 16 npm install --save-dev --legacy-peer-deps sass' sh 'n exec 16 npm run build-docker' } }