npm.io
1.0.1 • Published 4 years agoCLI

artifacts-yarn-auth

Licence
Version
1.0.1
Deps
0
Size
1 kB
Vulns
0
Weekly
0

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.