This question already has an answer here:
Changing affiliation on publication
I’m about to publish a paper with my previous group.
I’m not in a permanent position, and my boss doesn’t care if I mention or if I don’t mention my current institution in the paper.
For me, a researcher who wishes to have a permanent faculty position, would it be helpful or not at all to do that?