monorepo deployment #63330
-
BodyAre there any resources on how to use github actions with monrepos? For example if I only want to clone a specific folder, could I use submodules or subtrees? Guidelines
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hi, hp8wvvvgnj6asjm7! Absolutely, there are various resources available that can guide you on using GitHub Actions with monorepos, including methods for cloning specific folders. Two commonly used approaches are submodules and subtrees.
You can use submodules in combination with GitHub Actions to clone a specific folder from a submodule. To do this, you'll set up the submodule in your monorepo, and then in your GitHub Actions workflow, you can use git submodule update --init --recursive to fetch the submodule's contents. After that, you can navigate into the submodule directory and work with the desired folder.
With GitHub Actions, you can use subtree commands to pull changes from the external repository's specific folder into your monorepo. This process involves setting up the subtree and then using actions to periodically update it. There is many ppl discussing it in Stackoverflow. I hope it helped you! |
Beta Was this translation helpful? Give feedback.
Hi, hp8wvvvgnj6asjm7!
Absolutely, there are various resources available that can guide you on using GitHub Actions with monorepos, including methods for cloning specific folders. Two commonly used approaches are submodules and subtrees.
Submodules allow you to include a separate repository within another repository. This can be a helpful approach if you want to keep specific parts of your monorepo organized in separate repositories.
You can use submodules in combination with GitHub Actions to clone a specific folder from a submodule. To do this, you'll set up the submodule in your monorepo, and then in your GitHub Actions workflow, you can use git submodule update --init --r…