-
Notifications
You must be signed in to change notification settings - Fork 799
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
Usage in monorepo nx workspace #445
Comments
@sidyes did you make any progress on this? |
Unfortunatelly, I did not and currently I am just living with the all-in-one changelog. |
@sidyes I think I've found a solution. It's not ideal, but it'll do for now. You put an Example |
Ok, so it automatically recognizes the changes only for this specific folder and creates a CHANGELOG for this? |
I believe so. My initial test worked. But haven't used it in the wild yet. I managed to improve upon it quite a bit. This combo makes it work from the repo root and without standard-version globally installed! files in project folder: npm script in root: |
Working for me, thank you. 👍 |
In case someone else runs into the same problem as me: Since each repo in my mono repo has a different version and standard-version assumes you only want tags for one version, it often ended up mixing up the tags of the different repos. Causing the compareUrl to compare 3.0.9 with 10.12.5 and obviously not finding anything. I solved this by using Hope this helps someone else as well. |
Hi, Thanks @josteph that recommended this solution. And indeed it worked. I launch another question, and @snebjorn maybe you can throught a bit of light here Should we upgrade the monorepo version number? or stick it to 0.0.0 forever? If for example we do any change in dependency versions, or add new scripts in the main package.json, should that be versioned too? or it does not have sense anymore? |
Anyone using the |
It worked for me, but I don't know why! How does it know which commits should be picked? Where should we specify the scope name? |
Maybe y'all wanna try https://github.com/jscutlery/semver |
how does standard-version account for transitive changes in the repo? Assuming the npm scope for everything is
if
and
and then in the following PRs i make these changes: PR1
PR2
PR3
Will the PR1
??? and what commands need to be run in order to achieve that? |
Hi, for NX monoropero projects I'm using @jscutlery/semver. Lets try a look :)
Good luck! |
Hi,
I am using nx workspace to handle multiple angular projects as well as shared libraries.
Let' s assume a folder structure like this:
I am trying to figure out a way to use conventional-changelog in my release process. I want to have seperated changelogs for each project and one root changelog. By using conventional commits I would like to somehow define the scope of the commit (e.g. that this feat() only affects projectA and thus, is only mentioned in this specific changelog.
Is this possible or is this a wrong approach in a monorepo?
Help appreciated.
The text was updated successfully, but these errors were encountered: