From b92358b5b844e552ca79e02c5d30ac186136879e Mon Sep 17 00:00:00 2001 From: Ville Brofeldt <33317356+villebro@users.noreply.github.com> Date: Mon, 20 Sep 2021 15:01:47 +0300 Subject: [PATCH] ci: bump npm to version 7 (#16748) --- .github/workflows/bashlib.sh | 3 ++- scripts/ci_check_no_file_changes.sh | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/bashlib.sh b/.github/workflows/bashlib.sh index bcb3b78e7..1b67587df 100644 --- a/.github/workflows/bashlib.sh +++ b/.github/workflows/bashlib.sh @@ -55,7 +55,8 @@ npm-install() { cd "$GITHUB_WORKSPACE/superset-frontend" # cache-restore npm - + say "::group::Install npm@7" + sudo npm i -g npm@7 --registry=https://registry.npmjs.org say "::group::Install npm packages" echo "npm: $(npm --version)" echo "node: $(node --version)" diff --git a/scripts/ci_check_no_file_changes.sh b/scripts/ci_check_no_file_changes.sh index 592faa546..822723fd0 100755 --- a/scripts/ci_check_no_file_changes.sh +++ b/scripts/ci_check_no_file_changes.sh @@ -37,7 +37,7 @@ do REGEX="(^\.github\/workflows\/.*python|^tests\/|^superset\/|^setup\.py|^requirements\/.+\.txt|^\.pylintrc)" echo "Searching for changes in python files" elif [[ ${CHECK} == "frontend" ]]; then - REGEX="(^\.github\/workflows\/.*(frontend|e2e)|^superset-frontend\/)" + REGEX="(^\.github\/workflows\/.*(bashlib|frontend|e2e)|^superset-frontend\/)" echo "Searching for changes in frontend files" else echo "Invalid check: \"${CHECK}\". Falling back to exiting with FAILURE code"