In my pipeline, I just simply did the following in one of my steps
lerna publish --yes
And I received error
lerna ERR! ENOGIT Detached git HEAD, please checkout a branch to choose versions.
I think it probably be something trivial, really appreciated for any advice.