Any income you earn from work you actually (physically) perform in New York State is subject to New York State income tax. So you need to keep track of that income in order to complete a non-resident New York State tax return at year's end. See this NY tax reference for more detail:
https://www.tax.ny.gov/pit/file/nonresidents.htm
**Answers are correct to the best of my ability but do not constitute tax or legal advice.