You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Make semantic-release sync Helm Chart.yaml version with package.json version #249
My application has a Helm chart that is used to deploy my app to Kubernetes whenever I do a release. It is located in a subdirectory called deploy in my root project directory.
app/
-- package.json
-- deploy/
---- Chart.yaml (want to sync this with package.json)
Is there a way to have semantic-release update the version field in that file (to be synced with the updated package.json version) as part of its process and also include it as part of the chore(release): x.x.x [skip ci] commit changeset that it generates?
changed the title [-]Sync Helm Chart.yaml file with package.json after semantic-release[/-][+]Sync Helm Chart.yaml version with package.json version after semantic-release[/+]on May 19, 2022
changed the title [-]Sync Helm Chart.yaml version with package.json version after semantic-release[/-][+]Sync Helm Chart.yaml version with package.json version with semantic-release[/+]on May 19, 2022
changed the title [-]Sync Helm Chart.yaml version with package.json version with semantic-release[/-][+]Make semantic-release sync Helm Chart.yaml version with package.json version[/+]on May 19, 2022
// .releaserc.jsmodule.exports={plugins: [// ...['@semantic-release/exec',{// WORKAROUND: Use of `case` command, because not all shell versions can interpret the `if` statement syntax correctly// Maximum system compatibility between Windows, Linux and MacOS, since `sed -i` behaves differently on each type.verifyReleaseCmd:
"case $OSTYPE in darwin*) SEDOPTION=\" \";; esac && \ sed -i$SEDOPTION'' -e 's/version:.*/version: ${nextRelease.version}/g' deploy/Chart.yaml && \ sed -i$SEDOPTION'' -e 's/appVersion:.*/appVersion: \"${nextRelease.version}\"/g' deploy/Chart.yaml",},],],};
Activity
[-]Sync Helm Chart.yaml file with package.json after semantic-release[/-][+]Sync Helm Chart.yaml version with package.json version after semantic-release[/+][-]Sync Helm Chart.yaml version with package.json version after semantic-release[/-][+]Sync Helm Chart.yaml version with package.json version with semantic-release[/+][-]Sync Helm Chart.yaml version with package.json version with semantic-release[/-][+]Make semantic-release sync Helm Chart.yaml version with package.json version[/+]SimonGolms commentedon Nov 15, 2022
A bit late, but I solved it as follows: