Replies: 2 comments
|
You can use Bit and Git together to run a component monorepo also with Github Actions. To use Github Actions to release your components use the Github Actions CI scripts or automate the Bit commands from the CI yourself. |
|
Worth an update, since a lot has changed here since the last reply. On the original question — Bit can replace Git. Components are versioned, snapped and merged by Bit, lanes are the branching model, and teams do run Bit-only with no Git repo at all. But you don't have to. If you keep Git, the seam between the two is now automated by the
# on: pull_request
- run: npx @teambit/bvm install && bit ci pr
# on: push to main
- run: npx @teambit/bvm install && bit ci merge
# both with BIT_CONFIG_ACCESS_TOKEN in env
Two smaller ones for Git-side friction: The files Bit didn't versionThe other half of the original post — the files left outside Bit, which #5030 was about — is being addressed right now. #10698 (in review) lets a single component own the workspace root with It comes out of the pnpm-workspaces RFC (#10675, design in pnpm/rfcs#33): map every pnpm project to a component and give the unclaimed repository files to a root component. So it cuts both ways — it's what makes a Git-free workspace fully restorable, and it's also how an existing monorepo gets adopted without moving any files.
|
Uh oh!
There was an error while loading. Please reload this page.
I'm curious to know how others have integrated git and bit as bit takes on a significant amount of the version control but does not (yet?) have the same existing toolsets. Is the plan ultimately to replace git with bit?
I tried to combine the 2 and had to give up on any branching. I recently moved to just using bit for my components but as in the discussion here (#5030) that leaves some files not version controlled. My solution to this is to have a repo with just those files with a git ignore for any component directories.
I have also seen other topics where github actions is used to run the Bit commands.
All reactions