As others have mentioned, publication happens pretty much by itself.
There are some critical features to understand.
You really need to have sufficient resources to be able to push through from provisional/ application all the way to filing as soon as possible. You cannot add to the application when making your claims, so many inventors tend to include all possible variants in the original application description, however if your claims are reduced during examination, then you have published all this extra information, that you could have possibly used in a latter invention.
Ideally you want your patent examined and granted before the application gets published, overwise your competitors will know what you are doing and while you are dithering about, will be actively generating spinoffs based on your published ideas, or worse patenting enabling technology that your invention needs.
Imagine inventing a 3d printer, but neglecting to patent the means to manufacture the filament the machine needs as a necessary feedstock. You only sell a machine once, but you sell consumables forever. Imagine inventing shoes, and competitors making twice your margin selling socks. Or a competitor patenting non-slip soles for your shiny leather shoes.