diff --git a/jfrog-oauth/run.sh b/jfrog-oauth/run.sh index 0e7459a..4bd5139 100644 --- a/jfrog-oauth/run.sh +++ b/jfrog-oauth/run.sh @@ -29,8 +29,8 @@ else fi # 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_URL}/artifactory/api/npm/${REPOSITORY_NPM} +email=${ARTIFACTORY_EMAIL} +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 diff --git a/jfrog-token/run.sh b/jfrog-token/run.sh index 0e7459a..4bd5139 100644 --- a/jfrog-token/run.sh +++ b/jfrog-token/run.sh @@ -29,8 +29,8 @@ else fi # 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_URL}/artifactory/api/npm/${REPOSITORY_NPM} +email=${ARTIFACTORY_EMAIL} +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