🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

increase-version

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

increase-version

Automaticaly increase version in files (package.json, Dockerfile, yaml)

Source
npmnpm
Version
1.0.0
Version published
Weekly downloads
17
6.25%
Maintainers
1
Weekly downloads
 
Created
Source

increase-version

Automaticaly increase version in

  • package.json
  • Dockerfile
  • service.yaml

Script find in package.json property version.

params

  • --package-json=./package.json
  • --dockerfile=./Dockerfile
  • --template-yaml=./template.yaml
  • --yaml=./service-name.yaml
  • --version-up=major ... (2🔺).1.0
  • --version-up=minor ... 2.(1🔺).0
  • --version-up=build ... 2.1.(0🔺) default

examples js

const increaseVersion = require('increase-version');

async function increase() {
    const oldVersion = await version.getVersion(pathOfPackageJson);
    const newVersion = version.changeVersion(oldVersion, program.versionUp);
    const versions = { old: oldVersion, new: newVersion };
    
    increaseVersion.json(pathOfPackageJson, versions);
    increaseVersion.dockerfile(pathOfDockerfile, versions);    
} 

examples bash

# only package.json
increase-version --package-json=./package.json
# package.json with Dockerfile
increase-version \ 
--package-json=./package.json.example \
--dockerfile=./Dockerfile 

Keywords

version

FAQs

Package last updated on 07 Aug 2018

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