A conviction for the crime of theft can put you at risk for deportation. Please contact an experienced criminal defense attorney to explore you options for resolution of this matter.
I agree that shoplifting or theft are considered to be crimes of moral turpitude that would get you deported. You need to hire a criminal defense attorney and have them get you a plea bargain that falls under ICE's radar like disturbing the peace or some type of minor petty offense.
The information provided in this answer does not create an attorney-client relationship and is not considered to be legal advice.
You may be able to avoid a conviction if this is your first theft offense by working out a deal with the prosecutor. However, you'll need to either hire an attorney or apply for a public defender to negotiate on your behalf.