-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
[proposal] lerna publish with uncommitted changes #2329
Comments
This would also be useful for our project where we want to enforce usage of an internal npm registry for package installs via |
Would love to see this feature as well |
I had a similar problem in my cicd process. I do this.
And had to add |
Also this appears to be a security issue as being unable to check-in |
Yes, missing that as well! |
Azure DevOps Pipelines modifies the I've had to work around it by ignoring the |
|
Hello All! Can anyone please let me know if there's any update on this? I too see the same error, which says I am not sure how to proceed from here. As far as I checked, the working tree says, it is clean. |
+1. |
I'd be grateful for options (like |
I faced the same problem. The solution I found was tell git to ignore the .npmrc file
|
Hi,
I would like to propose a new option for lerna publish command, which would allow us to run
lerna publish
with uncommitted changes to the packages.We need this behaviour for our benchmark test, where we publish all monorepo packages to temporary private registry, then install all these published packages to our skeleton web application. Then we build and run this web application and run simple performance tests to check, that we did not cause some critical performance issues. We run this test in CI and don't want to push, or create any commits.
Pseudo Script
I found a solution to use
git update-index --assume-unchanged .
, that we could use in CI, but it seems a little bit dangerous and ugly and if somebody tries to run the script locally, it can have some horrible consequences.I also tried to simply run
lerna bootstrap
to link all the packages together, but I ran into another issue with our gulp tasks package, which is used by skeleton web app. Since all the linked dependencies are just symlinks and can use only its own dependencies, it makes a problem when a gulp task requires some project file, which requires some project dependency, which is not a dependency of the gulp task package (I hope its understandable :D ). This could be solved by installing all the required packages as dev dependency also to the gulp task package, but it seems rather ugly solution. Also, it is more reliable test, if I try to install actually published packages, since this would also test correctly set dev/production dependencies.I could not think of any other solution for our use case, but to create custom script to publish all the packages. But it seems unnecessarily complicated solution, because I would expect, that there should be some option for the
lerna publish
command, which would allow us to ignore uncommitted changes to the project.Proposal
The option
--skip-check-working-tree
would skip the check-working-tree and the command would not fail, when there are some uncommitted changes in the project, when trying to publish the packages.Another solution would be to attach this behaviour to
--no-git-reset
, but I am not sure, if I understand this option correctly.Related Issues
#1581
Thank you for your attention and keep up the great work!
Filip
The text was updated successfully, but these errors were encountered: