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

Release version not correlated to previous Prerelease version #788

Open
bencat-sixense opened this issue Feb 20, 2024 · 4 comments
Open

Comments

@bencat-sixense
Copy link

bencat-sixense commented Feb 20, 2024

I have a gitflow as follow:

  • PR merged on develop -> prerelease
  • develop merged on main -> release

When I create the prerelease version, I get this tag: my-project-name-0.5.0-dev.1
So if I merge this develop into main, I expect to get this: my-project-name-0.5.0
But I get this: my-project-name-0.4.2 (the previous release was my-project-name-0.4.1)

Do I miss something or is it the right behavior ?

This is my current project.json config:

    "release": {
      "executor": "@jscutlery/semver:version",
      "options": {
        "noVerify": true,
        "postTargets": ["my-project-name:docker", "my-project-name:github"],
        "preset": "conventional",
        "push": true,
        "trackDeps": true
      }
    },
    "prerelease": {
      "executor": "@jscutlery/semver:version",
      "options": {
        "noVerify": true,
        "postTargets": ["my-project-name:docker"],
        "preset": "conventional",
        "push": true,
        "preid": "dev",
        "releaseAs": "prerelease",
        "trackDeps": true,
        "skipCommit": true
      }
    },

NOTE: I use the latest v5.1.1 with Nx 16 and Node 18

Thank you !

@bencat-sixense
Copy link
Author

Anyone please ?

@edbzn
Copy link
Member

edbzn commented Feb 22, 2024

It's hard to know what's going on with git flow I cannot help you much but in your position I would look at the last generated tag and check if it's correctly pointing to your main branch, semver uses the last tag to calculate the next version.

@edbzn
Copy link
Member

edbzn commented Feb 22, 2024

It's hard to know what's going on with git flow I cannot help you much but in your position I would look at the last generated tag and check if it's correctly pointing to your main branch especially after you merged develop into main, semver uses the current tag to calculate the next version.

@kaankoken
Copy link

@edbzn I have a similar issue but it is not related to gitflow. you could check it out #817

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

3 participants