diff --git a/lib/prepare.js b/lib/prepare.js index 35b0457..0e3feca 100644 --- a/lib/prepare.js +++ b/lib/prepare.js @@ -7,7 +7,9 @@ module.exports = async (pluginConfig, context) => { const ch = yaml.load(await fsPromises.readFile("./Chart.yaml")); - await execa('helm', ['package', '--version', version, '--app-version', version, "."], { + const appVersion = pluginConfig.skipAppVersion ? ch.appVersion : version; + + await execa('helm', ['package', '--version', version, '--app-version', appVersion, "."], { env: {HELM_EXPERIMENTAL_OCI: 1} });