Skip to content

Commit

Permalink
fix(publish): support my-repo@[version] versions
Browse files Browse the repository at this point in the history
Closes #653

BREAKING CHANGE: Use sentry reponame@1.2.3 name instead of reponame-1.2.3 which doesn't match any convention in Sentry
  • Loading branch information
ryshu committed Mar 2, 2023
1 parent ffb771d commit 3065d96
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/publish.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down
2 changes: 1 addition & 1 deletion test/publish.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ describe('Publish', () => {
ctx,
)
expect(result.release.version).to.equal(
`${releasePrefix}-${ctx.nextRelease.version}`,
`${releasePrefix}@${ctx.nextRelease.version}`,
)
})

Expand Down

0 comments on commit 3065d96

Please sign in to comment.