He will face Democratic Gov. Maura Healey, who is running for a second term, in the November general election.