I’ve got a monorepo that uses Lerna, Yarn workspaces and Netlify in conjunction. I’ve got 5 sites hosted in total on Netlify, based on this repo, as an example, one of these is
A few of my packages depend on other local packages, and running
lerna bootstrap while using Yarn workspaces works great as all local packages get symlinked.
Builds on Netlify are also working as could be expected, as I put empty
yarn.lock files in every repo to force Netlify to use
yarn for installing instead of
However, I would want
yarn to not symlink my local packages during the build process on Netlify and rather download these from a private Github registry, where all of my packages get published before every push.
Is such a thing possible?
I’d imagine I would need to pass a custom
install command to Netlify to be able to do this, or am I missing something here?