use new config for npm

pull/50/head
Muhammad Atif Ali 2 years ago
parent 49016ad4a8
commit 5f729962dc
No known key found for this signature in database

@ -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: '',
});
});

@ -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}

Loading…
Cancel
Save