Giter Club home page Giter Club logo

versionings's Introduction

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.

versionings's People

Contributors

morozow avatar lol1kn1ght avatar

Stargazers

Andrew Johnson avatar  avatar Petr Portnov | PROgrm_JARvis avatar Alex Simonok avatar ihar.marozau avatar  avatar

Watchers

James Cloos avatar  avatar Kostas Georgiou avatar

Forkers

lol1kn1ght

versionings's Issues

Problem with "versionConfigPath" variable

config.js

const versionConfigPath = path.join(process.env.PWD, 'version.json');

That's doesn't work

I'm locally fixed that by

config.js

const versionConfigPath = path.join(process.cwd(), "version.json");

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.