Harriet Beecher Stowe did both. Uncle Tom's Cabin was first published as a 40-week serial in the abolitionist newspaper The National Era (June 5, 1851 – April 1, 1852). It was then released as a two-volume book in March 1852.
The book became the best-selling novel of the 19th century, fueling anti-slavery sentiment worldwide.