Pregnancy news to friend who miscarried

I need some advice on how to tell a friend that I am pregnant while being caring.

A little background story - we both got pregnant early last year, but we both miscarried weeks apart

I’m pregnant now and we are going to announce soon in social media. I want to tell her before but I don’t know how to. Any advice?