Renting an apartment in NYC for temporary work from home. Do I pay NYC taxes?

My permanent home and company is in CA and I can work remotely right now. I'm considering leasing an apartment for a year with a family member in NYC to work and live there. Does that open me up to being taxed in NY or NYC if I'm on a rental lease? I intend to return back to CA to my permanent home/domicile. Does having another family member on the lease help me some way? If I spend 183 days or more or keep a "permanent place of abode" in NYC than they will think I'm a resident?