Example GitHub Actions for common Bit and Git CI/CD workflows.
- You need to place them inside
.github/workflows/directory at the root of your GitHub repository. - If your workspace is not at the root of the Git repository, specify the input parameter
ws-dirin the taskbit-tasks/init@v3. - Create new secret variables (
BIT_CONFIG_ACCESS_TOKEN),GIT_USER_NAMEandGIT_USER_EMAILand use them as environment variables in your GitHub Action. - Define
GITHUB_TOKENalso as an environment variable. Here,GITHUB_TOKENsecret is automatically created by GitHub Actions.
| Task | Example | Repo and Docs |
|---|---|---|
| Bit Verify Components | verify.yml | link |
| Bit Tag and Export | tag-export.yml | link |
| Bit Pull Request Build | pull-request.yml | link |
| Task | Example | Repo and Docs |
|---|---|---|
| Dependency Update | dependency-update.yml | link |
| Task | Example | Repo and Docs |
|---|---|---|
| Branch Lane | branch-lane.yml | link |
| Lane Branch | lane-branch.yml | link |
To create zip files use the below commands.
chmod +x zip_files.sh
bash ./zip_files.sh