Skip to content

bit-tasks/shell-scripts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Shell Script Tasks for Bit and Git CI/CD Pipelines

Shell Script Tasks that you can use in Github Actions, AzureDevOps, GitLab and other CI/CD platforms.

Setup Guide

  1. 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"
  2. You need to pass the workspace root directory ws-dir for all the tasks. If your Bit workspace is at the root level, pass "./".

Automating Component Release

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

⬇️ Download Files

Update Workspace Components, External Dependencies and Envs

Task Shell Script Example
Dependency Update dependency-update.sh

⬇️ Download Files

Sync Git Branches with Bit Lanes

Task Shell Script Example
Branch Lane branch-lane.sh
Lane Branch lane-branch.sh

⬇️ Download Files

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>

Setup PNPM Caching

You can speed up the CI builds by caching the pnpm store. Refer to the official documentation for continuous integration by pnpm.

Contributor Guide

To create zip files use the below commands.

chmod +x zip_files.sh
bash ./zip_files.sh

About

Bit Shell Script Tasks for Git CI/CD Pipelines

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages