This Pipelines Task installs Yarn package manager.
Prerequisites
For installing Yarn, NodeJS is required. Consider using jfrog/setup-node
task for the installation.
Usage
Basic:
- task: jfrog/setup-yarn@v0.1.0
The above command installs the latest version available. To install a specific version use the version input:
- task: jfrog/setup-yarn@v0.1.0 input: version: "1.22.6"
Input Variables
Name | Required | Default | Description |
---|---|---|---|
version | false | latest | Yarn version to be installed |
Output Variables
None
Exported Environment Variables
None
How does it work?
To install Yarn, the task performs the following steps:
Checks if node is available
Installs yarn globally using
npm install
commandRun
yarn --version
to checked installed version
License
This project is licensed under Apache 2.0 license.