@dpaulos6/autover v2.7.1
Versioning Automation CLI
A Command Line Interface (CLI) tool for automating version bumps, Git tagging, and package publishing in your projects. This tool bumps your version based on Semantic Versioning (SemVer) principles, commits and tags the new version in Git, and optionally publishes the package.
Installation
You can install the tool globally via npm:
npm install -g @dpaulos6/autoverUsage
After installing, you can use the autover command to bump the version of your project, tag the release in Git, and optionally publish the package.
Bump the version
To bump the version, run the following command:
autover bump <type>Where <type> can be one of the following:
major: Increments the major version (e.g.,1.0.0→2.0.0).minor: Increments the minor version (e.g.,1.1.0→1.2.0).patch: Increments the patch version (e.g.,1.1.1→1.1.2).
Example
To bump the major version:
autover bump majorThis will:
- Read the current version from
package.json. - Increment the version based on the specified type (major, minor, or patch).
- Update
package.jsonwith the new version. - Commit all changes to Git with a message
chore: release version <new_version>. - Tag the release in Git with the new version.
- Optionally push changes to the remote repository.
- Optionally publish the package if configured.
Commit and Tagging
The version bump command will also create a Git commit with the following message format:
chore: release version <new_version>Additionally, it will create a Git tag for the new version, which can be used to track releases.
Example of a Commit and Tag
For a bump type of patch, the commit message will look like:
chore: release version 1.1.2The Git tag will be applied as:
1.1.2You can manually push changes and tags by running:
git push && git push --tagsPackage Publishing
If your project is a package that needs to be published, you can configure the tool to automatically publish the package after versioning.
Configuration
When you run the tool for the first time, you will be prompted to save your configuration settings in a configuration file. The settings include:
- Do you want to automatically publish the package after versioning?
- Do you want to automatically push changes after versioning?
If the cli founds more than one configuration file (package.json, deno.json, jsr.json, ...), it will prompt you to choose one of them and will use that file for next version bumps.
You can always change the file by running the setup wizard:
autover setupThe configuration will be saved in a config.json file in your project directory.
Example Configuration File
The base configuration is as follows:
{
"configFile": "package.json",
"shouldPush": false,
"shouldPublish": false,
"publish": {
"name": "npm",
"command": "npm publish",
"options": [
"--otp"
]
}
}If you want to use default configuration even if you already setup your configuration file, do so by running:
autover bump minor -d # use flag -d or --default to ignore your saved configuration and use defaultsPackage Publishing Commands
The tool supports publishing to npm and jsr:
npmwith One-Time Password (OTP) (Will be asked during the version bump process).jsrwith browser based authentication. (Might not work as expected or even crash due to not being 100% tested yet.)
License
MIT License. See LICENSE for details.
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago