semantic-release-monorepo icon indicating copy to clipboard operation
semantic-release-monorepo copied to clipboard

Non-javascript project generates new version for every package

Open jamescarignan opened this issue 2 years ago • 2 comments

Tools Info

semantic-release version: 19.0.3 semantic-release-monorepo version: 7.0.5

Issue

I'm building Python packages and using the semantic-release-pypi plugin to publish to a private PyPI repository. That is all working as expected. The problem I'm having is that any commit, anywhere in the project tree, is triggering a new version for every package in packages/.

semantic-release-monorepo is reporting that no relevant commits were found: [semantic-release] [[Function: semantic-release-monorepo]] › ℹ Found 0 commits for package mypackage since last release

But as you can see below, semantic-release still thinks a new version is needed.

semantic-release:release-notes-generator previousTag: 'mypackage-v2.7.4' +0ms
semantic-release:release-notes-generator currentTag: 'mypackage-v2.7.5' +0ms
[semantic-release] › ⚠  Skip mypackage-v2.7.5 tag creation in dry-run mode

I'm not convinced this is necessarily an issue with the monorepo plugin, but I do have it working beautifully with some Angular libraries we're building and publishing. If I disable the PyPI plugin, there's no change in behaviour. Has anyone else experienced this same thing? I can put together an example repo if that would help.

jamescarignan avatar Jun 29 '22 20:06 jamescarignan

Did you find solution for this?

ankitbko avatar May 19 '23 13:05 ankitbko

The logic in only-package-commits.js is package.json-specific. To support non-JS projects, the logic would have to be generalized/customizable somehow

pmowrer avatar Jan 29 '24 16:01 pmowrer