jscutlery / semver

Nx plugin to automate semantic versioning and CHANGELOG generation.
MIT License
719 stars 83 forks source link

How I can reset semver on existing repository? #821

Open Jazastry opened 1 month ago

Jazastry commented 1 month ago

We have a private nx monorepo with semver. It worked for some time then I had the "Error: Failed to tag "...", this tag already exists". I removed the latest tag, then the error showed the previous tag ... and so on. Finaly, I removed all the tags from the remote. So now I'm trying to "restart" the semver and make it work again.

What I tried all of this in the CI GitHub actions and locally with the same result:

  1. I tried to create manually tags for every project in the monorepo from a single commit in the base branch
    • After running the task I had the same error.
  2. I tried to run the version task for all projects without tags in the repo
    • First it created the initial tags (0.0.0)
    • And on the next version task run I had the same error
  3. I tried to create tags from the last version update commit for every project in the monorepo
    • I had the same error

What is the right way to do recreate the versioning on an existing repository without tags? Thank you!