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}