lerna / lerna/lerna

Lerna hangs on publish

Open
#2,664 16 comments 9 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

type: bug
Dominant language
TypeScript
Stars
36.1k
Forks
2.3k
Avg merge
1d 4h
Merged PRs (30d)
50

Description

$ 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

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the hang in the linked katawaredev/config repository using the shown lerna.json, Lerna 3.22.1, npm 6.14.4, and Node 10.19.0, then compare npx lerna publish with publish from-package against Verdaccio. Done means the publish command finishes while preserving the expected version increments and CHANGELOG.md generation.

Written by the indexing model from the issue text.

Assessment

Tech stack
nodejs, typescript
Domain
release
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.