Build Pipelines

A build pipeline is a sequence of tasks that are executed upon component build. Tasks are defined by the development env, applied on all of its components or by using a Bit app, affecting just a single component build.

Run the component build pipelines using the following command:

$bit
Copiedcopy
See command synopsis

By default, Bit builds all components which changed, but you can use the component patterns to build specific components or the --unmodified flag to force building components which didn't change.

Build upon release

Run the following to execute the snap pipeline (which includes the build pipeline):

$bit
Copiedcopy
See command synopsis

Run the following to execute the tag pipeline (which includes the build pipeline):

$bit
Copiedcopy
See command synopsis

By default, snaps and tags are built using Ripple CI, use the --build flag force a local build.

Building upon CI release

Building Bit in your own CI is best using the bit tag --persist flag. This flag checks for version changes in your bitmap following a soft tag and automatically versions your components accordingly.

bit tag --persist
CopiedCopy

By default, bit tag --persist will release a new patch version for your components. You can control the exact versions by running bit tag/snap --soft on your workspace before pushing changes to your repository.

bit tag --soft
CopiedCopy

Building unchanged components

By default, build tasks run only on modified components. To run the task on unmodified components, as well, run:

$bit
Copiedcopy

Learn more