Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make semantic-release sync Helm Chart.yaml version with package.json version #353

Open
thedanchez opened this issue May 19, 2022 · 2 comments

Comments

@thedanchez
Copy link

thedanchez commented May 19, 2022

I made a similar post here but then realized that the request may be better suited for the @semantic-release/git plugin instead.

Is it possible to have semantic-release also update the version field within my app's Helm Chart.yaml file alongside the other files? Or is this something that is better suited to be in its own plugin (e.g. @semantic-release/helm dedicated to updating Helm charts) ?

@ki0
Copy link

ki0 commented May 25, 2022

Hi @thedanchez

I use something like this:

[
      "@semantic-release/exec",
      {
        "verifyReleaseCmd": "/ci-utils/update_versions.sh ${nextRelease.version}",
        "prepareCmd": "/ci-utils/update_helm_docs.sh",
        "publishCmd": "echo ${nextRelease.version} > semantic-release-version.txt"
      }
    ],
    [
      "@semantic-release/git",
      {
        "assets": [
          "CHANGELOG.md",
          "package.json",
          "package-lock.json",
          "helm/Chart.yaml",
          "helm/README.md"
        ],
        "message": "chore(release): publishing release ${nextRelease.version}"
      }
    ],

The scripts are very simple, changing the version from a parameter passed and i update all files with the same version.

@thedanchez
Copy link
Author

Thank you @ki0 !! Will definitely try this out!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants