Giter Club home page Giter Club logo

Comments (5)

nejcm avatar nejcm commented on September 26, 2024 1

Exact same problem. I recently migrated from semantic-release. It worked without a problem there but with semver squash-merging produces the above issue.

from semver.

nejcm avatar nejcm commented on September 26, 2024 1

That is the only bigger difference I see in two different PRs where one worked and the other failed.
The setup is a monorepo with different packages that get released. The release is triggered each time a PR is merged into the develop branch through github actions.

from semver.

nejcm avatar nejcm commented on September 26, 2024 1

Ok so I found what is the cause on my side. So GitHub actions can run concurrently which means that while one is still in progress with incrementing the version and release the other will start and do a git checkout which will pull the code that does not contain the new version tags yet. Which causes it to fail when the first action generates new tags that now conflict with the second action run. This issue gets amplified in case the jobs are doing other stuff in between which makes it more likely that another job will start running in between.
Now the solution here would probably be concurrency setting for GitHub actions

UPDATE: the concurrency did not work for me. Might be doing something wrong.

from semver.

edbzn avatar edbzn commented on September 26, 2024

Well, squash merging shouldn't produce any problem as far as you release your main branch. I would need more detail on your workflow to have an idea about the underlying issue.

from semver.

ontoneio avatar ontoneio commented on September 26, 2024

@edbzn It seems like versioning as it's implemented here shouldn't be tied to a specific workflow, it should be flexible to fit in wouldn't you agree? The current implementation seems to imply that in order to use this plugin, specific instructions on workflow should be provided? My setup is almost the same as @nejcm describes above.

That is the only bigger difference I see in two different PRs where one worked and the other failed.
The setup is a monorepo with different packages that get released. The release is triggered each time a PR is merged into the develop branch through github actions.

I am running into almost the exact same issues he describes in the comment before this one.

from semver.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.