From 0384f893f909ba11c0cc4e6940e1338232bfdcdc Mon Sep 17 00:00:00 2001 From: ibon eskudero <ibon.eskudero@tecnalia.com> Date: Fri, 10 Jan 2025 11:10:09 +0100 Subject: [PATCH] try to copy .jfrog folder into package folder --- npm-packages/license_checker.yml | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/npm-packages/license_checker.yml b/npm-packages/license_checker.yml index a5cee29..80cf7de 100644 --- a/npm-packages/license_checker.yml +++ b/npm-packages/license_checker.yml @@ -11,21 +11,26 @@ before_script: - npm install -g js-green-licenses # check if js-green-licenses.json exist on PACKAGE_DIR. If not, inform user and continue - test -f $PACKAGE_DIR/js-green-licenses.json || (echo "js-green-licenses.json not found in $PACKAGE_DIR" && echo "Continuing with default configuration") - -cache: - paths: - - node_modules/ - + license_check: stage: license-check tags: - docker image: $ACR_URL/node:18.12.0 + # cache build for the next jobs + artifacts: + untracked: true + expire_in: 1h + paths: + - $PACKAGE_DIR/.node_modules + - $PACKAGE_DIR/.package-lock.json script: - # Change to the directory containing package.json - - cd $PACKAGE_DIR # connect job from artifactory_connect.yml - !reference [.connect, script] + # if PACKAGE_DIR is not ".", copy .jfrog folder to PACKAGE_DIR + - if [ "$PACKAGE_DIR" != "." ]; then cp -r .jfrog $PACKAGE_DIR; fi + # Change to the directory containing package.json + - cd $PACKAGE_DIR # install dependencies - jfrog rt npm-install - jsgl --local ./ || exit 1 -- GitLab