https://github.com/intility/helm-version
Update Helm chart appVersion based on package.json version.
https://github.com/intility/helm-version
Last synced: about 1 year ago
JSON representation
Update Helm chart appVersion based on package.json version.
- Host: GitHub
- URL: https://github.com/intility/helm-version
- Owner: intility
- License: mit
- Created: 2021-06-18T16:30:22.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2023-10-10T10:57:24.000Z (over 2 years ago)
- Last Synced: 2025-03-27T13:01:53.605Z (over 1 year ago)
- Language: JavaScript
- Size: 33.2 KB
- Stars: 14
- Watchers: 3
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README

@intility/helm-version
A tool for setting a Helm charts appVersion based on the package.json version field.
To be used with npm version.
## Usage
Install with
```shell
npm install @intility/helm-version
```
Add a `version` script to your `package.json`
```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
```shell
helm-version
```
Prefix is optional, and defaults to `v`.
This is because `npm version` prefixes the git tag with `v`.