If you kept your domicile - your main, permanent home - in NM all of 2019, and you went to WY temporarily for work purposes and then returned to your home in NM, then for tax purposes you are a domiciliary resident of NM, and ALL your income is taxable by NM, regardless of where you earned it.