Skip to content

bit-tasks/nodejs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bit Node.js Tasks for Git CI/CD Pipelines

Node.js Tasks that you can use in Github Actions, Azure DevOps, 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 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

⬇️ Download Files

Update Workspace Components, External Dependencies and Envs

Task Node.js Example
Dependency Update dependency-update.js

⬇️ Download Files

Sync Git Branches with Bit Lanes

Task Node.js Example
Branch Lane branch-lane.js
Lane Branch lane-branch.js

⬇️ Download Files

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.

References

GitHub Actions

For more information refer Create a javascript action

GitLab CI/CD

For more information refer Specify a custom CI/CD file

Azure DevOps

For more information refer Add build task

Contributor Guide

To create zip files use the below commands.

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

About

Bit Node.js Tasks for Git CI/CD Pipelines

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published