setup-bun
setup-bun copied to clipboard
Create a v2 branch instead of moving the tag
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:
- Remove the
v2tag, - Create a
v2branch to the latest release - Prepare the code, and update & commit everything to the
mainbranch, including thepackage.json - Create a new release with the
v2.0.2tag git switch v2 && git merge main && git push origin v2- 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:
- Prepare the code, and update & commit everything to the
mainbranch, including thepackage.json - Create a new release with the
v2.0.3tag git switch v2 && git merge main && git push origin v2- Done
You can use the same solution for v1 releases.
Sounds good, we can do it 👍