Use precise version of yarn?

Is there any out-of-the box way to have CircleCI use an exact, precise, version of Yarn?

Note the following caveat, from the creators of Yarn:

Yarn is fully deterministic as long as all your teammates are using the same Yarn version.

On CircleCI 1.0, no. You’d need to install the version you want.

On CircleCI 2.0, simply use a Docker image with the version you want. That can be a custom image of your own or a public one.

1 Like