Setting aside differences during an often heated primary season, Ted Cruz announced on Friday that he is endorsing Donald Trump for president.

On his Facebook page, Cruz said that voting for Trump in November is "the right course of action" for the country.

"After many months of careful consideration, of prayer and searching my own conscience, I have decided that on Election Day, I will vote for the Republican nominee, Donald Trump. I’ve made this decision for two reasons. First, last year, I promised to support the Republican nominee. And I intend to keep my word. Second, even though I have had areas of significant disagreement with our nominee, by any measure Hillary Clinton is wholly unacceptable — that’s why I have always been #NeverHillary," Cruz wrote. 

Cruz said that he was honoring the commitment he made last year to support the Republican nominee.