Does publishing research in physics during bachelor degree help in applying for master’s in mathematics?
The answer to both of your questions is "yes".  Indeed, publishing original research in any STEM field has at least some (and usually quite a substantial) positive impact on graduate school applications for programs in other STEM fields.