Sean Spicer, the longtime Republican PR insider and President Trump’s first White House press secretary, has inked a book deal and in it he plans to rip the media for trashing the president.

Spicer told Secrets tonight, "It was an honor to have a front row seat on the campaign, transition team and the first eight months of this historic presidency. I look forward to sharing my stories and setting the record straight."

Popular conservative publisher Regnery, the Washington-based firm that has a stable of big-name writers including David Limbaugh, Dinesh D’Souza, Laura Ingraham, Michelle Malkin, Ann Coulter and Newt Gingrich, announced tonight that it will put Spicer’s first book, The Briefing, out next summer.

“Regnery is the perfect home for Sean Spicer to tell his story,” said Marji Ross, president and publisher of Regnery. “Sean shares our mission to shine light on the stories the mainstream media won’t cover, and we are honored to partner with him on this project.”

Spicer, a commander in the U.S. Navy Reserve, planned to reveal his book contract Monday night during an appearance on Sean Hannity's Fox show.

Regnery said the book will be out July 23 and is already taking early orders.

Spicer is a rare bird in Trump world: He worked on his campaign, transition and in the first months of his White House, often between an angry press and a president angry at how the media portrayed him.

Instead of an insider tale about the campaign and White House, Spicer plans to tap his background and experience to blow the whistle on anti-Trump bias in the media.

“This isn’t about White House gossip,” said Spicer. “I can tell you from first-hand experience of the rampant hostility President Trump faces daily from the mainstream press, and I want the American people to have an opportunity to hear the truth they won’t hear from mainstream media,” he added.

Spicer left the White House when Trump decided to name pal Anthony Scaramucci as communications director. Scaramucci didn’t last long, but Spicer stuck with his decision to leave. He has since become a star on the speaking circuit.

As Trump’s spokesman during the campaign, transition and early White House, Spicer often fought the media on behalf his boss, most notably when the media downplayed the size of the Inauguration crowd.

Despite his often testy pushback with the media, especially TV reporters, Spicer remains popular with reporters and staff inside the White House.

Paul Bedard, the Washington Examiner's "Washington Secrets" columnist, can be contacted at pbedard@washingtonexaminer.com