Comments (5)
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.
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.
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.
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.
@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)
- Is it possible to exclude some projects when bumping version with synced mode. HOT 1
- Version calculate issue HOT 1
- release as preminor is not increasing the version HOT 4
- commit hash of each changelog content cannot be converted into link HOT 1
- Allow skipping creating tags? HOT 2
- Latest version(v5.1.1) not bumping the version of a project if the changes made to the dependency. HOT 4
- How to pass postTargets as cli args ? HOT 1
- Release version not correlated to previous Prerelease version HOT 5
- @jscutlery/semvver:github executor failing HOT 1
- `{projectName}` interpolation by Nx causes wrong dependencies versions in changelogs
- Possibility to write version info to some file
- Adding `releaseAs=preminor` && `preid=beta` doesn't work as expected HOT 1
- Changelogs are not correctly being generated with custom preset
- Atomic push not working as expected
- `runPostTargets` unexpectedly pass target options as overrideOptions
- release does not consider prerelease tags
- Add support for @nx/devkit v19.0.0 HOT 6
- `Release` does not consider `prerelease` tag
- `@jscutlery:version` executor failing with @nx v19.0.4 HOT 2
- How I can reset semver on existing repository?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from semver.