YARN needs a modern version of NodeJS and if we don't use the role
to get the latest version, we end up failing on most platforms that
ship an old version of it.
This patch also adds testing to validate that ensure-yarn alone works.
Co-Authored-By: Andreas Jaeger <aj@suse.com>
Change-Id: I83ac09bc5751c85c6f1eac550d289a300ca2255e
The role previously conditionally installed YARN only if there was
a yarn.lock. The role shouldn't conditionally decide to install
if there is a yarn.lock file as that's not expected behaviour.
Change-Id: Ia6940df036fd27d55d60fa959b794de952040745
This patch refactors ensure-yarn to use the new generic role
to allow it to be cross-platform in the future.
Change-Id: I32bb40f5afb26d0d906f332c1c8440859367d97a