When last we left our stellar evolution story we were in the red giant phase. What happens next depends on the star's initial mass.
For stars less than 8 times the mass of the Sun, the next phase is to blow off their outer layers and form a planetary nebula.