-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
lerna publish from-package
fails in AWS CodeBuild
#1933
Comments
Digging into the CodeBuild docs, it looks like there's a
|
Yep, that certainly makes sense. A similar approach to #1908 is what I'm thinking (noodling locally right now). There are a couple more places we need to be aware of "do i need git", but it's actually not bad. I think a (simplified) |
…age` metadata Fixes lerna#1933
@samlecuyer How does this look? |
@evocateur this is amazing, thank you for being so responsive! API-wise, it looks good to me |
AWS CodePipeline does not provide the
.git
directory orgit
executable to CodeBuild jobs, even when sourcing the code from a CodeCommit repository. The step to addgitHead
to each package fails and cannot publish due to the error.Expected Behavior
lerna should be able to publish in a non-git environment using
from-package
Current Behavior
Possible Solution
Maybe make the
gitHead
step optional or fail silently in non-git environments.Steps to Reproduce (for bugs)
git
from your path and.git
, if any existlerna publish from-package
lerna.json
Context
I'm investigating using a monorepo with our existing infrastructure, which is AWS. We cannot use lerna with AWS Developer Tools unless it can publish gitless. I do not expect
version
to work without git (that should be done by people on their dev machines), butpublish
should.Your Environment
Running in AWS CodeBuild, Ubuntu, Node.JS 10.14.1.
lerna --version
npm --version
yarn --version
node --version
The text was updated successfully, but these errors were encountered: