Skip to content

Commit 3065d96

Browse files
committed
fix(publish): support my-repo@[version] versions
Closes #653 BREAKING CHANGE: Use sentry [email protected] name instead of reponame-1.2.3 which doesn't match any convention in Sentry
1 parent ffb771d commit 3065d96

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Diff for: src/publish.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ module.exports = async (pluginConfig, ctx) => {
6969
const commits = await parseCommits(pluginConfig, ctx)
7070
ctx.logger.log('Commit data retrieved')
7171
const sentryReleaseVersion = pluginConfig.releasePrefix
72-
? `${pluginConfig.releasePrefix}-${ctx.nextRelease.version}`
72+
? `${pluginConfig.releasePrefix}@${ctx.nextRelease.version}`
7373
: ctx.nextRelease.version
7474
/** @type {SentryReleaseParams} */
7575
const releaseDate = {

Diff for: test/publish.test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ describe('Publish', () => {
255255
ctx,
256256
)
257257
expect(result.release.version).to.equal(
258-
`${releasePrefix}-${ctx.nextRelease.version}`,
258+
`${releasePrefix}@${ctx.nextRelease.version}`,
259259
)
260260
})
261261

0 commit comments

Comments
 (0)