Shell Script Tasks that you can use in Github Actions, AzureDevOps, GitLab and other CI/CD platforms.
- You need to define the following environment variables in your CI platform and share them across the tasks.
GIT_USER_NAME
- Your Git user name.GIT_USER_EMAIL
- Your Git email.BIT_CONFIG_ACCESS_TOKEN
(docs).BIT_CONFIG_ANALYTICS_REPORTING
-"false"
BIT_CONFIG_ANONYMOUS_REPORTING
-"false"
BIT_CONFIG_INTERACTIVE
-"false"
- You need to pass the workspace root directory
ws-dir
for all the tasks. If your Bit workspace is at the root level, pass"./"
.
Task | Shell Script Example |
---|---|
Initialize Bit | bit-init.sh |
Bit Verify Components | verify.sh |
Bit Tag and Export | tag-export.sh |
Bit Pull Request Build | pull-request.sh |
Bit Lane Cleanup | lane-cleanup.sh |
Commit Bitmap | commit-bitmap.sh |
Task | Shell Script Example |
---|---|
Dependency Update | dependency-update.sh |
Task | Shell Script Example |
---|---|
Branch Lane | branch-lane.sh |
Lane Branch | lane-branch.sh |
Run these scripts by passing the parameters in order. For example:
./scripts/branch-lane.sh <wsdir>
./scripts/lane-branch.sh <wsdir> <lane-name> <branch-name>
You can speed up the CI builds by caching the pnpm store
. Refer to the official documentation for continuous integration by pnpm
.
To create zip files use the below commands.
chmod +x zip_files.sh
bash ./zip_files.sh