I decided to create a mini project showcasing my "open-sourced" libraries which can be found here. I implemented Lerna to automate the publishing process for these projects. However, I'm encountering an issue where every package gets updated each time lerna publish
is executed in the CI environment.
Expected Outcome
Only the packages that have actually been modified should be published
Current Issue
All packages are consistently being published regardless of changes
Potential Solution
π€·ββοΈ
Steps to Replicate (for debugging purposes)
Download the repository from my GitHub repo, run lerna updated
and observe that both of my packages always show up
{
"packages": ["packages/*"],
"version": "independent",
"npmClient": "yarn",
"command": {
"publish": {
"ignoreChanges": [
"**/CHANGELOG.md",
"**/node_modules/**",
"**/package.json",
"**/*.md",
"**/*.spec.*",
"**/*.stories.*"
],
"conventionalCommits": true,
"message": "chore(release): publish",
"registry": "https://registry.npmjs.org"
}
}
}
Context
The versions based on Semantic Versioning (semver) are not consistent
Your Development Environment
Repository: TypeScript
| Executable | Version |
| ---: | :--- |
| lerna --version
| 3.22.1 |
| npm --version
| 6.14.4 |
| yarn --version
| 1.22.4 |
| node --version
| 13.12.0 |
| OS | Version | | macOS Catalina | 10.15.5 |