Skip to content

Commit

Permalink
chore: use annotated tags
Browse files Browse the repository at this point in the history
Signed-off-by: msclock <[email protected]>
  • Loading branch information
msclock committed Oct 12, 2023
1 parent 501604a commit 40f4057
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .releaserc.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,16 @@ module.exports = {
},
},
],
[
"@semantic-release/exec",
{
publishCmd: [
"[[ $(git tag -l) =~ (^|[[:space:]])\"v${nextRelease.version}\"($|[[:space:]]) ]] && git tag -d \"v${nextRelease.version}\"",
"git tag -a -f v${nextRelease.version} --cleanup=whitespace -m '${nextRelease.notes}'",
"git push --force origin v${nextRelease.version}"
].join(" && "),
}
],
["@semantic-release/changelog", { changelogFile: "CHANGELOG.md" }],
[
"@semantic-release/git",
Expand Down

0 comments on commit 40f4057

Please sign in to comment.