1.0.1 • Published 2 years ago
artifacts-yarn-auth v1.0.1
Introduction
This script is useful for authenticating with azure artifacts using Yarn. Npm is supported out of the box, but not Yarn.
Getting Started
Add the following scrips to your azure pipeline yaml file.
task: npmAuthenticate@0 displayName: 'Authenticate Npm' inputs: workingFile: '.npmrc'
script: 'npm install -g yarn artifacts-yarn-auth --registry=https://registry.npmjs.org/' displayName: 'Install yarn & artifacts-yarn-auth'
script: 'yarn-auth $(System.DefaultWorkingDirectory)' displayName: 'Authenticate Yarn'
Now you can run yarn scripts to install packages.