Skip to content

Update Helm chart appVersion based on package.json version.

License

Notifications You must be signed in to change notification settings

mpalczynski/helm-version

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation


@intility/helm-version

A tool for setting a Helm charts appVersion based on the package.json version field.
To be used with npm version.

pipeline package version

Usage

Install with

npm install @intility/helm-version

Add a version script to your package.json

{
  "scripts": {
    "version": "helm-version path/to/chart && git add path/to/chart/Chart.yaml"
  }
}

You can now call npm version as usual to version your app, and the appVersion field will be automatically updated and added to the git commit and tag!

Alternatively, you can run it manually

helm-version <chart> <prefix>

Prefix is optional, and defaults to v. This is because npm version prefixes the git tag with v.

About

Update Helm chart appVersion based on package.json version.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%