-
Notifications
You must be signed in to change notification settings - Fork 83
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
add option to specify package manager #77
Comments
+1.. It doesn't detect yarn monorepo. If you want to run
|
So I created a temporary fork: https://github.com/soanvig/size-limit-action-yarn-v2 |
@soanvig This is great! But can you add an option to customize the manager? For a monorepo, there will be only one |
@zchenwei I advise you to create your own fork in this case |
Hi @markerikson! I just updated the |
@andresz1 thank you! I'll have to try it out here shortly. as a fellow maintainer I hate to be the one doing the "PLZ RELEASE THISS!!!!!!!" :) appreciate the response! |
@markerikson hahaha 🤣 no worries! BTW thank you both for your work with Redux. |
Hmm. I just tried updating RTK's workflow to add the Lemme actually paste in the entire error for reference:
Unfortunately that output has me really confused. I assumed this was erroring while trying to do Obviously the symptom here is that Any ideas why? I'm not familiar with the internals of Github Actions, so I don't know if this is happening as the action itself is being installed, or something else. |
I think that I found the issue. The problem is that auto-detecting the package manager to install dependencies is not working properly with monorepos and |
Yeah, that's generally the conclusion the earlier comments were coming to :) FWIW I just spent the last half hour trying to bump all of RTK's I've got the action disabled in our repo atm, but was trying to re-enable it with v1.7.0 over in reduxjs/redux-toolkit#2374 . If you could ping me when you think you've got this fixed, I'd appreciate it! |
Sure! will do. Thank you for pointing out the issue and sorry for that :( |
Yes, I think that's the issue. I have a monorepo and want to run size limit in one of workspaces by specifying |
We just ran into this same issue with npm being used over yarn. I got it working with the I got a fork working with an option to manually override the package manager and its working in our private repo so just submitted a PR in case you are interested in incorporating that change. |
Hi there, I solved problem by added fake
|
Recent builds of https://github.com/reduxjs/redux-toolkit/ seem to fail with
size-limit-action
, sincesize-limit-action
does not detect the yarn monorepo (yarn.lock
is in the root folder, we are running with a differentdirectory
though) and runsnpm
instead.Would it be possible to add a flag to just skip all the flaky autodetection and just manually specify the package manager? I'd be happy to file a PR.
The text was updated successfully, but these errors were encountered: