yk6
Returning Member

Stuck outside USA due to pandemic

I moved to USA/California for a Job in mid 2019. In March 2020, I went for trip to my home country, however, due to lockdowns and travel restrictions, I was stuck in my home country for rest of 2020. I continued my job remotely and received USA salary. I have W2. I return to USA in 2021.

How should I file my 2020 taxes (federal and state)? Do I become non-resident for 2020? Please advise. 

Thank you.