Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create a v2 branch instead of moving the tag #125

Open
LitoMore opened this issue Feb 22, 2025 · 1 comment
Open

Create a v2 branch instead of moving the tag #125

LitoMore opened this issue Feb 22, 2025 · 1 comment
Assignees

Comments

@LitoMore
Copy link

LitoMore commented Feb 22, 2025

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.

@xhyrom
Copy link
Collaborator

xhyrom commented Feb 26, 2025

Sounds good, we can do it 👍

@xhyrom xhyrom self-assigned this Feb 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants