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
v2 tag,
- Create a
v2 branch to the latest release
- Prepare the code, and update & commit everything to the
main branch, including the package.json
- Create a new release with the
v2.0.2 tag
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
main branch, including the package.json
- Create a new release with the
v2.0.3 tag
git switch v2 && git merge main && git push origin v2
- Done
You can use the same solution for v1 releases.
Hi team, it looks like you force-pushed the
v2tag in thev2.0.1release. We could create av2branch to avoid the force-push.Let's say we're going to release the
v2.0.2version:v2tag,v2branch to the latest releasemainbranch, including thepackage.jsonv2.0.2taggit switch v2 && git merge main && git push origin v2So that you don't have to move the
v2tag with force-push in every release.For the
v2.0.3version, it becomes:mainbranch, including thepackage.jsonv2.0.3taggit switch v2 && git merge main && git push origin v2You can use the same solution for v1 releases.