setup-bun icon indicating copy to clipboard operation
setup-bun copied to clipboard

Create a v2 branch instead of moving the tag

Open LitoMore opened this issue 10 months ago • 1 comments

Hi team, it looks like you force-pushed the v2 tag in the v2.0.1 release. We could create a v2 branch to avoid the force-push.

Let's say we're going to release the v2.0.2 version:

  1. Remove the v2 tag,
  2. Create a v2 branch to the latest release
  3. Prepare the code, and update & commit everything to the main branch, including the package.json
  4. Create a new release with the v2.0.2 tag
  5. git switch v2 && git merge main && git push origin v2
  6. Done

So that you don't have to move the v2 tag with force-push in every release.

For the v2.0.3 version, it becomes:

  1. Prepare the code, and update & commit everything to the main branch, including the package.json
  2. Create a new release with the v2.0.3 tag
  3. git switch v2 && git merge main && git push origin v2
  4. Done

You can use the same solution for v1 releases.

LitoMore avatar Feb 22 '25 20:02 LitoMore

Sounds good, we can do it 👍

xhyrom avatar Feb 26 '25 13:02 xhyrom