Skip to content

Commit cffb19f

Browse files
committed
build: update generated release summary
1 parent 2a4d75f commit cffb19f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

scripts/release.ts

+5-1
Original file line numberDiff line numberDiff line change
@@ -173,12 +173,16 @@ const releaseOptions: SemanticRelease.Options = (() => {
173173
})();
174174

175175
const generateGhaSummary = (nextRelease: SemanticRelease.NextRelease) => {
176+
const repoUrl = (releaseOptions.repositoryUrl as string)
177+
.replace(/^git\+/, '')
178+
.replace(/.git$/, '');
179+
176180
const content = `## 🚀 Release Report
177181
- Type: ${nextRelease.type}
178182
- Version: ${nextRelease.version}
179183
- Tag: ${nextRelease.gitTag}
180184
181-
See this release at this [link](${releaseOptions.repositoryUrl}/releases/tag/${nextRelease.gitTag}).
185+
See this release at this [link](${repoUrl}/releases/tag/${nextRelease.gitTag}).
182186
183187
## 📝 Generated Notes
184188
${nextRelease.notes}`;

0 commit comments

Comments
 (0)