From 963d4d6a3e5089cc8b06e7e0260e23c36135147d Mon Sep 17 00:00:00 2001 From: Muhammad Atif Ali Date: Thu, 28 Dec 2023 15:30:29 +0300 Subject: [PATCH] fixup! --- jfrog-token/run.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jfrog-token/run.sh b/jfrog-token/run.sh index e2c3778..f550474 100644 --- a/jfrog-token/run.sh +++ b/jfrog-token/run.sh @@ -30,10 +30,10 @@ else # if npm version is greater than or equal to 9.0.0, use the new npmrc format cat << EOF > ~/.npmrc email=${ARTIFACTORY_EMAIL} -registry=${JFROG_HOST}/artifactory/api/npm/${REPOSITORY_NPM} +registry=${JFROG_URL}/artifactory/api/npm/${REPOSITORY_NPM} EOF if [ "$(npm --version | cut -d. -f1)" -ge 9 ]; then - echo "//${JFROG_URL}/artifactory/api/npm/${REPOSITORY_NPM}/:_authToken=${ARTIFACTORY_ACCESS_TOKEN}" >> ~/.npmrc + echo "//${JFROG_HOST}/artifactory/api/npm/${REPOSITORY_NPM}/:_authToken=${ARTIFACTORY_ACCESS_TOKEN}" >> ~/.npmrc else echo "_auth=${ARTIFACTORY_ACCESS_TOKEN}" >> ~/.npmrc echo "always-auth=true" >> ~/.npmrc