This library provides helper functions designed for Continuous Integration (CI) environments, specifically Travis-CI and JenkinsCI with Stash integration. Its primary features include automatically determining project versions based on branch names, publishing Git tags to the repository, and managing downstream branch merges (e.g., from `release` to `master`). The current stable version is 1.0.13, released several years ago, indicating an inactive development pace. Key differentiators include its tight integration with Travis-CI through specific `.travis.yml` encryption methods and its ability to infer versioning and automate Git operations within CI pipelines, aiming to reduce manual configuration and script complexity between build tasks and the CI platform. Due to its age, compatibility with modern Node.js versions or current CI platform features may be limited.
npm install ci-build-toolsVerified import paths — ran on the pinned version, not inferred.
This code demonstrates how to initialize the `ci-build-tools` library, retrieve the current project version, publish a Git tag, and perform downstream branch merges within a CI environment, highlighting the necessary environment variable `GIT_TAG_PUSHER`.
Consider using actively maintained alternatives for CI/CD automation or fork and update the library to support current environments. Evaluate the security implications of using an unmaintained package.
Always initialize the module with `const ci = require('ci-build-tools')(process.env.GIT_TAG_PUSHER ?? '');` ensuring `GIT_TAG_PUSHER` is properly set in your CI environment.Consult the latest Travis-CI documentation and GitHub API guidelines for secure credential management and API key scope requirements. Verify the suggested scopes are still appropriate and necessary to avoid security vulnerabilities or access issues.
Ensure your branching strategy aligns with `release/*` and `master` for automated merges, or be prepared to fork and modify the library's source code to accommodate custom workflows.
Ensure the module is invoked: `const ci = require('ci-build-tools')(process.env.GIT_TAG_PUSHER);`Verify that `GIT_TAG_PUSHER` is correctly set and encrypted in your CI environment, and that the GitHub Personal Access Token has the required scopes as outlined in the README.
Run `gem install travis` (after `apt-get install ruby-dev` on Debian-based systems) to install the Travis CI client.
No dependency data recorded yet.