-
Notifications
You must be signed in to change notification settings - Fork 80
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
[bug] semantic-release-monorepo ignores pkgRoot #121
Comments
anyone here? |
@eng-dibo I'm affected by this as well. Today I tried downgrading my |
finally, someone came here!! it seems this repo is not maintained anymore and we need to migrate to another solution |
confirmed as this issue only occurs in v9, v8 is more stable |
@eng-dibo I just started using this repo, damn I didn't realize there wasn't much (or any?) activity in the last year. @pmowrer are you still actively developing this or have you set it aside temporarily? |
@iknowcss This project is essentially in maintenance mode. The aim is to keep pace with changes to |
Yeah fair enough, thanks for your work on it so far anyway. We have a way forward now at least. Take care 🙏 |
we just need your help to fix this vital issue |
@eng-dibo is it an issue with this project or with semantic-release? semantic-release did a major upgrade so I would guess they've changed some API. It might not be too difficult to fix. If someone like yourself put up a PR to fix it then maybe Patrick could review and merge in between juggling kids? |
This issue is actually from semantic-release/npm see semantic-release/npm#504 and this PR that fixes it semantic-release/npm#531 - the PR however is only for v10 so that will be an issue but the thread related to the issue does have a way to patch semantic-release/npm |
I created a minimal reproduction which is a monorepo that contains only one workspace in `./package' dir
both root and package (the workspace) have exactly the same release.config.js file except that package extends
semantic-release-monorepo
.both of them uses the default configurations and only two plugins
the important part here is that
@semantic-release/npm
uses{ pkgRoot: "dist" }
package
contents are typically the same as the root includingdist
folder, except the package name.if I run
semantic-release
from the root, i.e withoutsemantic-release-monorepo
it packs the package as expected, and puts the contents ofpkgRoot
dir in the top-level of the published package.in contrast, when I run the same command from
package
, i.e withsemantic-release-monorepo
, it ignores the optionpkgRoot
and the packed packages contain the folderdist
instead of its contents.steps for reproduction
1- clone the repo and install dependencies
2- remove all local and remote tags if exist
3- switch to the branch
next
4- modify root's and package's files and create feat/fix commits
5- run the script
release
from the root and package and see the tarball's contents in both casesyou will see different behavior.
The text was updated successfully, but these errors were encountered: