diff --git a/src/publish.js b/src/publish.js index aaf6ad86..83d13855 100644 --- a/src/publish.js +++ b/src/publish.js @@ -69,7 +69,7 @@ module.exports = async (pluginConfig, ctx) => { const commits = await parseCommits(pluginConfig, ctx) ctx.logger.log('Commit data retrieved') const sentryReleaseVersion = pluginConfig.releasePrefix - ? `${pluginConfig.releasePrefix}-${ctx.nextRelease.version}` + ? `${pluginConfig.releasePrefix}@${ctx.nextRelease.version}` : ctx.nextRelease.version /** @type {SentryReleaseParams} */ const releaseDate = { diff --git a/test/publish.test.js b/test/publish.test.js index bacb9be8..f306ffc7 100644 --- a/test/publish.test.js +++ b/test/publish.test.js @@ -255,7 +255,7 @@ describe('Publish', () => { ctx, ) expect(result.release.version).to.equal( - `${releasePrefix}-${ctx.nextRelease.version}`, + `${releasePrefix}@${ctx.nextRelease.version}`, ) })