The docker image circleci/node:8 exposes the environment variable YARN_VERSION to set a specific yarn version. When I set the version in the environment map, it’s not picked up by the docker image:
You may be able to delete the post, using the toolbar under the first post.
When presenting YAML, please use a code block, not a quote block. Quote blocks collapse space indentation, which means readers cannot see the structure of your YAML.
@rtymchyk: it’s more of a conceptual understanding than a solution. The image is build using a specific YARN_VERSION, so altering the yarn version doesn’t do much. There are two things you can do:
create a custom docker image or create a run command script which downloads yarn and cache this.
The latter is some work, but should be straight forward (you can copy the commands from the node js dockerfile).