All Projects → bahmutov → next-ver

bahmutov / next-ver

Licence: other
Tells you the next semantic version for your local package

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to next-ver

Python Semver
Python package to work with Semantic Versioning (http://semver.org/)
Stars: ✭ 264 (+877.78%)
Mutual labels:  semver, version, semantic-versioning, release
Semantic Release
📦🚀 Fully automated version management and package publishing
Stars: ✭ 14,364 (+53100%)
Mutual labels:  semver, version, release
perfekt
Release, changelog and version your packages with perfe(k)t 👌 ease!
Stars: ✭ 15 (-44.44%)
Mutual labels:  semver, version, release
Cli
🆑📍 Setup automated semver compliant package publishing
Stars: ✭ 272 (+907.41%)
Mutual labels:  semver, version, release
Version
Represent and compare versions via semantic versioning (SemVer) in Swift
Stars: ✭ 160 (+492.59%)
Mutual labels:  semver, version, semantic-versioning
React Native Version
🔢 Version your React Native or Expo app in a `npm version` fashion.
Stars: ✭ 408 (+1411.11%)
Mutual labels:  semver, semantic-versioning, release
Please
please is semver release made easy
Stars: ✭ 72 (+166.67%)
Mutual labels:  semver, release
Semver
Semantic Versioning for modern C++
Stars: ✭ 108 (+300%)
Mutual labels:  semver, semantic-versioning
Version
♈ Value Object that represents a SemVer-compliant version number.
Stars: ✭ 117 (+333.33%)
Mutual labels:  semver, version
bin-version-cli
Get the version of a binary in semver format
Stars: ✭ 36 (+33.33%)
Mutual labels:  semver, version
Commitizen
Create committing rules for projects 🚀 auto bump versions ⬆️ and auto changelog generation 📂
Stars: ✭ 477 (+1666.67%)
Mutual labels:  semver, semantic-versioning
Reckon
Infer a project's version from your Git repository.
Stars: ✭ 124 (+359.26%)
Mutual labels:  semver, version
Semver
Semantic versioning helper library for PHP
Stars: ✭ 144 (+433.33%)
Mutual labels:  semver, semantic-versioning
Grabver
Gradle Automatic Build Versioning Plugin - An easy Gradle plugin that follows semver.org rules to automatically generate the Patch version, Build number and Code version, while Major, Minor and Pre-Release suffix remain under our control.
Stars: ✭ 39 (+44.44%)
Mutual labels:  semver, version
Semver
Semantic Versioning (semver) library written in golang
Stars: ✭ 804 (+2877.78%)
Mutual labels:  semver, semantic-versioning
Semantic Release
📦🚀 semantic-release written in go
Stars: ✭ 113 (+318.52%)
Mutual labels:  semver, semantic-versioning
Shipjs
Take control of what is going to be your next release.
Stars: ✭ 668 (+2374.07%)
Mutual labels:  semver, release
Gh Release
Create a github release for a node package.
Stars: ✭ 132 (+388.89%)
Mutual labels:  semver, release
Bumped
📦 Makes easy release software
Stars: ✭ 222 (+722.22%)
Mutual labels:  semver, release
git
🔀 semantic-release plugin to commit release assets to the project's git repository
Stars: ✭ 235 (+770.37%)
Mutual labels:  version, release

next-ver

Tells you the next semantic version for your local package

NPM

Build status semantic-release js-standard-style

Install and use

Imagine a local package with current version 2.3.0 and a single semantic commit fix(something): fix the login. This tools computes the next version that should be used.

npm install -g next-ver
next-ver
next version should be 2.3.1

Then you can publish, for example using npm version command or one of the good helper CLI tools, like publish-please, np or ci-publish.

npm version 2.3.1

Incrementing version in package file

If there is a new version, you can update the version in the "package.json" file and commit the change, including creating a tag, just like the command npm version <new version> does.

Just add --go to the next-ver command

next-ver --go

Semantic version rules

A semantic version has form "major.minor.patch"

A typical semantic commit has message of the form "type(scope): message". Commits that do not follow this format are ignored when computing next version.

If there is a commit fix(something): ... then new version should increment the "patch" number. A commit feat(something): ... will increment the "minor" number. Finally, a commit with text "BREAKING" anywhere in the message or the message body text will increment the "major" number.

When there are multiple numbers, the will be only the highest single digit increment. For example, these 4 commits will increment the "minor" number only.

fix(this): ...
fix(that): ...
feat(log): ...
feat(server): ...

CLI options

  • --go increments the version in the current folder's package.json
  • --version, -v shows the version of next-ver itself

Related

I recommend enforcing commit message format using pre-git with its default simple-commit-message format validator. They work great with semantic-release tool.

Testing and development

Uses separate repo next-ver-test for testing this tool via dont-break

Small print

Author: Gleb Bahmutov <[email protected]> © 2016

License: MIT - do anything with the code, but don't blame me if it does not work.

Support: if you find any problems with this module, email / tweet / open issue on Github

MIT License

Copyright (c) 2016 Gleb Bahmutov <[email protected]>

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].