Latest Threat Research:SANDWORM_MODE: Shai-Hulud-Style npm Worm Hijacks CI Workflows and Poisons AI Toolchains.Details
Socket
Book a DemoSign in
Socket

raise-version

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

raise-version

Update and publish package version for Gitflow worflow

Source
npmnpm
Version
0.3.0
Version published
Weekly downloads
407
36.12%
Maintainers
1
Weekly downloads
 
Created
Source

node-raise-version

Update and publish package version for Gitflow worflow.

Installation

npm install raise-version --save-dev

or

yarn add raise-version --dev

CLI usage

  • Initialize raise-version from the root directory of your project (optional — if missed then default configuration will be used):

    • if installed globally:

      npx raise-version init
      
    • if installed locally:

      raise-version init
      

    .raiseverrc configuration file will be created.

    raisever is an alias for raise-version CLI command.

  • Adjust configuration parameters in .raiseverrc, use --help to see a list of available configuration parameters:

    raise-version --help
    
  • Make changes to your source code, describe them in changelog file (if used) and raise a version:

    raise-version <release> [options]
    

    Options that are not passed in [options] are taken from .raiseverrc by default.

    Here is an example using default .raiseverrc configuration where patch version is updated in package.json, prepended as a title with date to bulleted list of changes in CHANGELOG.md file, all changes are commited to two Gitflow workflow branches master and develop and pushed to remote repository:

    raise-version patch --git-push
    

Programmatical usage

const raiseVersion = require('raise-version');
raiseVersion({
  release: 'patch',
  gitPush: true
}).catch(function(e) {
  console.error('Something went wrong');
});

FAQs

Package last updated on 12 Nov 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts