Yarn is preinstalled on AppVeyor, so you don't need to do anything extra in order to use it as part of your build.
To speed up your builds, you can cache Yarn's cache folder by adding this to your appveyor.yml:
appveyor.yml
cache: - "%LOCALAPPDATA%\\Yarn"