Skip to content

Commit

Permalink
pick: fix tag creation
Browse files Browse the repository at this point in the history
  • Loading branch information
sampaiodiego committed Jul 6, 2023
1 parent 9320f49 commit ffb049f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .changeset/gentle-tigers-lay.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@rocket.chat/release-action': minor
---

fix tag
6 changes: 3 additions & 3 deletions packages/release-action/src/publishRelease.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,14 +81,15 @@ export async function publishRelease({

// merge release changes to master
await exec('git', ['checkout', 'master']);
await exec('git', ['merge', '--no-ff', '--no-edit', branchName.trim()]);
await exec('git', ['merge', '--no-edit', branchName.trim()]);

core.info('fix dependencies in workspace packages');
await fixWorkspaceVersionsBeforePublish();

await exec('yarn', ['changeset', 'publish', '--no-git-tag']);

await exec('git', ['tag', newVersion]);
// create an annotated tag so git push --follow-tags will push the tag
await exec('git', ['tag', newVersion, '-m', newVersion]);

await exec('git', ['push', '--follow-tags']);

Expand All @@ -97,7 +98,6 @@ export async function publishRelease({
name: newVersion,
tag_name: newVersion,
body: releaseBody,
draft: true,
prerelease: newVersion.includes('-'),
...github.context.repo,
});
Expand Down

0 comments on commit ffb049f

Please sign in to comment.