Skip to content
Sandor edited this page Nov 27, 2019 · 5 revisions

With this task, you can invoke yarn.

Add the task to your Build or Release Definition

Add-Tasks

You will find the task in the "Utility" category.

Configuration

Configure-Yarn

General

  • Project Directory - Directory where you want to execute yarn.
  • Arguments - (Optionnal) state your additionnal arguments here.

Install Options

  • Production Install - (Optionnal) If checked, it appends --production

Yaml Build

Using specified feed:

- task: geeklearningio.gl-vsts-tasks-yarn.yarn-task.Yarn@3
  displayName: 'Custom Package in Custom Feed Directly Specified'
  inputs:
    projectDirectory: src/YarnCustomPackageNoNpmRc
    arguments: --verbose
    customRegistry: useFeed
    customFeed: '00000000-0000-0000-0000-000000000000'

Or using .npmrc:

- task: geeklearningio.gl-vsts-tasks-yarn.yarn-task.Yarn@3
  displayName: 'Custom Package in Custom Feed Directly Specified'
  inputs:
    projectDirectory: src/YarnCustomPackageNoNpmRc
    arguments: --verbose
Clone this wiki locally