Skip to content

Commit 4b7e4e1

Browse files
Configure yarn, not npm
1 parent dd880b9 commit 4b7e4e1

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

build-yarn/build.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,9 @@ set_build_env() {
8686
fi
8787

8888
echo "::debug::Configuring JFrog and NPM repositories..."
89-
npm config set registry "$ARTIFACTORY_URL/api/npm/npm"
90-
npm config set "${ARTIFACTORY_URL//https:}/api/npm/:_authToken=$ARTIFACTORY_ACCESS_TOKEN"
89+
yarn config set npmRegistryServer "${ARTIFACTORY_URL}/api/npm/npm"
90+
yarn config set npmAlwaysAuth true
91+
yarn config set npmAuthIdent ${ARTIFACTORY_USERNAME}:${ARTIFACTORY_ACCESS_TOKEN}
9192
jf config remove repox > /dev/null 2>&1 || true # Do not log if the repox config were not present
9293
jf config add repox --artifactory-url "$ARTIFACTORY_URL" --access-token "$ARTIFACTORY_ACCESS_TOKEN"
9394
jf config use repox

0 commit comments

Comments
 (0)