From 5f729962dc655fa751ef62e8835210aa96624567 Mon Sep 17 00:00:00 2001 From: Muhammad Atif Ali Date: Tue, 26 Sep 2023 17:33:40 +0300 Subject: [PATCH] use new config for npm --- jfrog/main.test.ts | 2 +- jfrog/run.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/jfrog/main.test.ts b/jfrog/main.test.ts index fffe200..293037e 100644 --- a/jfrog/main.test.ts +++ b/jfrog/main.test.ts @@ -13,6 +13,6 @@ describe("jfrog", async () => { agent_id: "some-agent-id", jfrog_host: "YYYY.jfrog.io", artifactory_access_token: "XXXX", - package_managers: "{}", + package_managers: '', }); }); diff --git a/jfrog/run.sh b/jfrog/run.sh index 773372d..f5821b8 100644 --- a/jfrog/run.sh +++ b/jfrog/run.sh @@ -19,7 +19,7 @@ if [ -z "${REPOSITORY_NPM}" ]; then echo "🤔 REPOSITORY_NPM is not set, skipping npm configuration." else echo "📦 Configuring npm..." - jf rt npm-config set registry "https://${JFROG_HOST}/artifactory/api/npm/${REPOSITORY_NPM}" + jf npmc --global --repo-resolve "https://${JFROG_HOST}/artifactory/api/npm/${REPOSITORY_NPM}" cat << EOF > ~/.npmrc email = ${ARTIFACTORY_USERNAME} registry = https://${JFROG_HOST}/artifactory/api/npm/${REPOSITORY_NPM}