versionings

0.1.0 • Public • Published

Versionings

Overview

Implementation of versioning automation.
Versioning schema: Semantic Versioning

Install

npm install --global versionings

Setup

  • Create ./version.json file in the root project directory.
  • Set required versioning configuration settings
    • git.platform
      • The VCS platform. Supports: github, bitbucket
    • git.url
      • The VCS platform repository URL.
  • Set versioning configuration settings
    • git.pr.target
      • The VCS Pull Request target branch: Default: master
version.json example
{
  "git": {
    "platform": "github",
    "url": "https://github.com/morozow/versionings.git"
  }
}

Usage

CLI command:

versionings --semver=[<semantic-version> | patch | prepatch | minor | preminor | premajor | prerelease | major] --branch=[<version-branch-name> | any-hyphen-case-less-100-characters-string] [--push]

Parameters

  • semver: any semantic version degree
    • major, minor, patch, premajor, preminor, prepatch, prerelease
    • ./config.js contains available levels: config.package.semver
  • branch: version branch name comment
    • any hyphen case less 100 characters string
    • example: version/minor/v4.9.0-provider-service, "provider-service" is a branch name comment
  • push: is responsible for new version repository push. Boolean parameter.

Readme

Keywords

Package Sidebar

Install

npm i versionings

Weekly Downloads

68

Version

0.1.0

License

MIT

Unpacked Size

18.6 kB

Total Files

7

Last publish

Collaborators

  • hehey