Well by coincidence we are repainting now so I can tell you how our painter does it. I will point out, this project was not cheap by any means, it is very costly to have the pros do it. For the baseboards and all other wood trim they did this. As you can see it is quite a process and it takes some time because you have to wait for drying in between.
Patched any nail holes as required.
Sanded everything down with power sander.
Applied primer by spraying.
Applied split coat by spraying.
Hand painted 2 coats of enamel paint.(caulking and fine tuning as needed also)
Here’s a few pics of the work in progress.