Node.js Tasks that you can use in Github Actions, Azure DevOps, 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 | Node.js Example |
---|---|
Initialize Bit | bit-init.js |
Bit Verify Components | verify.js |
Bit Tag and Export | tag-export.js |
Bit Pull Request Build | pull-request.js |
Bit Lane Cleanup | lane-cleanup.js |
Commit Bitmap | commit-bitmap.js |
Task | Node.js Example |
---|---|
Dependency Update | dependency-update.js |
Task | Node.js Example |
---|---|
Branch Lane | branch-lane.js |
Lane Branch | lane-branch.js |
You can speed up the CI builds by caching the pnpm store
. Refer to the official documentation for continuous integration by pnpm
.
For more information refer Create a javascript action
For more information refer Specify a custom CI/CD file
For more information refer Add build task
To create zip files use the below commands.
chmod +x zip_files.sh
bash ./zip_files.sh