1 comment

[ 2.9 ms ] story [ 10.8 ms ] thread
I made Copybara Action to be able to open-source parts of our monorepo while keeping the rest private.

The result is a tool that lets you setup a sync from one monorepo that is the source of truth to as many other repos as you want. It syncs back PR's as well.

Example use cases:

- Create a mirror of a repo, changing or omitting a few files

- Open-source sub-packages from your monorepo

- Create "workspace" repos from your monorepo to give someone access to only parts of it (eg. temp freelance)

We are using nx as a monorepo tool, here is an example of it using the Copybara Action: https://github.com/olivr/nx-copybara

Under the hood, as the name implies, it uses Copybara (Google), and this action can be customized to use the full power of Copybara if you wish so.

If you think of other use cases or put together another example you want me to link to from the README, just hit me up here or on GitHub.