# artifacts-yarn-auth

> This script is useful for authenticating with azure artifacts using Yarn. Npm is supported out of the box, but not Yarn.

Latest version **1.0.1** (published 2022-06-14) · 0 weekly downloads

## Install

```sh
npm install artifacts-yarn-auth
pnpm add artifacts-yarn-auth
yarn add artifacts-yarn-auth
bun add artifacts-yarn-auth
```

Provides the command `yarn-auth`.

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2022-06-14 |
| First published | 2021-05-27 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 1.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | joseph.vandenberg |

## Links

- npm: https://www.npmjs.com/package/artifacts-yarn-auth
- npm.io page: https://npm.io/package/artifacts-yarn-auth

## Recent versions

- 1.0.1 (latest) — 2022-06-14
- 1.0.0 — 2021-05-27
- 0.0.2 — 2021-05-27
- 0.0.1 — 2021-05-27

## README

# 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.

---
_Source: https://npm.io/package/artifacts-yarn-auth · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
