Teams will set a policy that answers to your question but ultimately that’s not enforced by the branching model nor continuous integration.
Typical ways of doing:
- Publishing occurs after the full non-regression test suite has been run successfully by the continuous integration software
- Software is built and published before running the non-regression test suite, and then the artifacts are tagged depending on the success or failure of the tests
Maybe you could elaborate on what you want to know?
In any case, your best bet is to ask your team what their policies are and how they configured their tools.