Skip to content

Commit

Permalink
fix: semrelease hooks (#25)
Browse files Browse the repository at this point in the history
  • Loading branch information
alesz authored Aug 5, 2024
1 parent 3e3c508 commit 3b4bd58
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/semantic-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@ jobs:
with:
github-token: ${{ secrets.PAT }}
allow-initial-development-versions: true
hooks: exec
hooks: exec,git
18 changes: 14 additions & 4 deletions .releaserc
Original file line number Diff line number Diff line change
@@ -1,7 +1,17 @@
{
"plugins": [
["@semantic-release/exec", {
"publishCmd": "sed -i 's/\(newTag:\).*/\1 ${nextRelease.version}/' deploy/kustomize/overlays/*/kustomization.yaml"
}],
[
"@semantic-release/exec",
{
"publishCmd": "echo \"Running sed with exec plugin\" && sed -i 's/\\(newTag:\\).*/\\1 ${nextRelease.version}/' deploy/kustomize/overlays/*/kustomization.yaml"
},
"@semantic-release/git",
{
"assets": [
"deploy/kustomize/overlays/*/kustomization.yaml"
],
"message": "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"
}
]
]
}
}

0 comments on commit 3b4bd58

Please sign in to comment.