Skip to content

Commit f9c1939

Browse files
committed
ci(release): prevent semantic-release from commenting multiple times
1 parent 4f6e759 commit f9c1939

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

release.config.cjs

+7-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,13 @@ const config = {
4848
assets: assetsToUpdate
4949
}
5050
],
51-
"@semantic-release/github"
51+
[
52+
"@semantic-release/github",
53+
{
54+
successCommentCondition:
55+
'<% return issue.pull_request || !nextRelease.channel || !issue.labels.some(label => label.name === "released on @next"); %>'
56+
}
57+
]
5258
]
5359
};
5460

0 commit comments

Comments
 (0)