I have a monorepo with yarn workspaces (and lerna)
-package
--one
--two
-site
And a script that takes each one of them (one, two and site) and pushes them to their github repositories
I do this with something like
git subtree split ... // from `one|two|site` folders create a new repo
git checkout ... // switch to the new repo
git tag ... // create a tag and push it to the new repo
git push -u url branch:master // push the content to the new repo
git checkout master // go back
git branch --delete // delete the created brancg
It (so far) works, even though it is slow
The question is whether I am doing this correctly or there is any other better solution out there