Yarn Berry plugin to use the az cli for authentication to azure devops repos
- Install the Azure CLI
- Make sure the az command is part of your path
- Run az login
To install the latest release use
yarn plugin import https://github.com/FishandRichardsonPC/yarn-plugin-az-cli-auth/releases/latest/download/plugin-az-cli-auth.js
or to install a specific version use
yarn plugin import https://github.com/FishandRichardsonPC/yarn-plugin-az-cli-auth/releases/download/X.Y.Z/plugin-az-cli-auth.js
Then you will need to setup your .yarnrc.yml file to connect with azure devops
Example:
npmRegistries:
//pkgs.dev.azure.com/<organization>/_packaging/<azurefeed>/npm/registry:
npmAlwaysAuth: true
//pkgs.dev.azure.com/<organization>/_packaging/<azurefeed>/npm:
npmAlwaysAuth: true
npmScopes:
<org>:
npmRegistryServer: https://pkgs.dev.azure.com/<organization>/_packaging/<azurefeed>/npm/registry