[bug] semantic-release-monorepo ignores pkgRoot
See original GitHub issueI 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
module.exports = {
plugins: [
"@semantic-release/commit-analyzer",
["@semantic-release/npm", { pkgRoot: "dist" }],
],
// extends: ["semantic-release-monorepo"],
};
the important part here is that @semantic-release/npm
uses { pkgRoot: "dist" }
package
contents are typically the same as the root including dist
folder, except the package name.
if I run semantic-release
from the root, i.e without semantic-release-monorepo
it packs the package as expected, and puts the contents of pkgRoot
dir in the top-level of the published package.
in contrast, when I run the same command from package
, i.e with semantic-release-monorepo
, it ignores the option pkgRoot
and the packed packages contain the folder dist
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 cases
you will see different behavior.
Issue Analytics
- State:
- Created a year ago
- Reactions:1
- Comments:9 (1 by maintainers)
Top GitHub Comments
@iknowcss This project is essentially in maintenance mode. The aim is to keep pace with changes to
semantic-release
, which seems to have slowed down significantly in recent years. Haven’t had much time to commit to open source lately - kids 🤷@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?