From 5f2935c82c3ba688a054571ac123a25b1dbb20a7 Mon Sep 17 00:00:00 2001 From: ibon eskudero <ibon.eskudero@tecnalia.com> Date: Fri, 10 Jan 2025 15:22:56 +0100 Subject: [PATCH] try using npmrc --- npm-packages/license_checker.yml | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/npm-packages/license_checker.yml b/npm-packages/license_checker.yml index 6638060..7be131a 100644 --- a/npm-packages/license_checker.yml +++ b/npm-packages/license_checker.yml @@ -1,7 +1,3 @@ -#do artifactory connections -include: - - https://git.code.tecnalia.com/digicon-webxr-store/ci-files/-/raw/test/npm-packages/artifactory_connect.yml - before_script: # Set PACKAGE_DIR to "." if not already defined. # PACKAGE_DIR should point to where the package.json file is - PACKAGE_DIR=${PACKAGE_DIR:-"."} @@ -24,12 +20,15 @@ license_check: - $PACKAGE_DIR/node_modules - $PACKAGE_DIR/package-lock.json script: - # connect job from artifactory_connect.yml - - !reference [.connect, script] # Change to the directory containing package.json - cd $PACKAGE_DIR - # install dependencies - - jfrog rt npmi $NPM_REPO_URL + # create config file + - touch ".npmrc" + # write config json to config file + - echo "$NPMRCV2" >> .npmrc + # install dependencies using local .npmrc + - npm install + # check for licenses - jsgl --local ./ --verbose || exit 1 only: - tags -- GitLab