Lerna hangs on publish
See original GitHub issue$ npx lerna publish
...
lerna info execute Skipping git push
lerna info execute Skipping releases
And it hangs there. It creates CHANGELOG.md files and increments the version, but the command never finishes
Possible Solution
npx lerna publish from-package
In this case it finishes in seconds, except it does not increment versions or create changelog.
Steps to Reproduce (for bugs)
Repo: https://github.com/katawaredev/config
lerna.json
{
"packages": ["packages/*"],
"version": "independent",
"command": {
"publish": {
"conventionalCommits": true,
"message": "chore(release): release"
},
"bootstrap": { "hoist": true },
"version": { "push": false }
}
}
Context
The packages in the monorepo were not published before. Running npx lerna publish
after npx lerna publish from-package
again never finishes.
I am using Verdaccio to publish them locally for testing.
Your Environment
Executable | Version |
---|---|
lerna --version |
3.22.1 |
npm --version |
6.14.4 |
node --version |
10.19.0 |
OS | Version |
---|---|
Pop!_OS | 20.04 |
Issue Analytics
- State:
- Created 3 years ago
- Reactions:6
- Comments:14
Top Results From Across the Web
Developers - Lerna hangs on publish - - Bountysource
Lerna hangs on publish · Possible Solution · Steps to Reproduce (for bugs) · Context · Your Environment.
Read more >javascript - Lerna publish workflow not publishing as expected
For smoother CI experience, I have made a Github Action workflow to publish the monorepo packages with a prerelease version, everytime any ...
Read more >Troubleshooting | Lerna
This can cause an issue where Lerna will ignore previously published releases which have been manually performed and tagged with the Github web...
Read more >Managing monorepos with lerna and yarn workspaces - Medium
npx lerna publish --conventional-commits lerna notice cli v3.19.0 ... A few weeks of working on them will get you the hang of it....
Read more >@lerna/publish | Yarn - Package Manager
@lerna/publish. owner lerna5.5mMIT6.0.3 vulns 0 vulnerabilities. Publish packages in the current project.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I ran into the same issue with these settings:
Environment
package.json
lerna.json
Workaround
I hit
Ctrl + C
just once and the process continues.Thanks, @hoangnm, disabling Husky seemed to solve my issue:
HUSKY_SKIP_HOOKS=1 lerna publish
The question is: Is this behavior a bug, or it is supposed to happen (e.g. it’s husky’s fault)? If it’s not related to lerna, I’ll close it.