Your best bet is to take an Uber to the Sacramento Amtrak station, take Amtrak down to Merced, then transfer to the YARTS (Yosemite area rapid transit) bus which stops at that station.
Unfortunately not a exsisting service
Thanks! Your answer is awaiting moderation.