Fusion produces forces that make the star expand outwards, but gravitational force is always pulling the particles within the star inwards. When these two opposing forces become balanced a star is stable and called a main sequence star. It should stay this way for millions of years, at a constant size and temperature.