Skip to content
Snippets Groups Projects
Commit 5f2935c8 authored by Eskudero Gurrutxaga, Ibon's avatar Eskudero Gurrutxaga, Ibon
Browse files

try using npmrc

parent a3583b04
No related branches found
No related tags found
No related merge requests found
#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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment