CLEVELAND (AP) -- Brian McCann hit a three-run homer, Stephen Drew also connected and the New York Yankees broke a five-game losing streak with an 8-6 win over the Cleveland Indians on Thursday night.

New York remained a half-game behind AL East-leading Toronto, which has won 11 in a row. The teams begin a three-game series in Toronto on Friday night, a week after the Blue Jays swept a three-game series at Yankee Stadium.

Limited to a total of six runs during their skid, the Yankees shook loose as McCann homered in the first inning. Drew hit a solo homer in the second, added an RBI double in the fourth and wound up scoring a career-high four runs.

More from FoxSports

Brett Gardner got three hits and drove in three runs for New York.

Nathan Eovaldi (12-2) won his seventh straight decision, allowing four runs in 5 1/3 innings. The right-hander hasn't lost since June 16, a span of 10 starts.

Andrew Miller, who blew his first save of the season Tuesday, allowed a run in the ninth on Carlos Santana's single but struck out Abraham Almonte to end the game. Miller is 25 for 26 in save situations.

Trevor Bauer (9-10) gave up six runs in 3 1/3 innings as Cleveland's four-game winning streak ended.

The Indians rallied from a four-run deficit and cut the lead to 7-5 in the seventh when Dellin Betances threw a wild pitch with the bases loaded.

Jacoby Ellsbury, snapping an 0-for-19 skid, started the game with a single and Gardner walked. Bauer retired the next two hitters but fell behind McCann in the count 2-1. That prompted a visit by pitching coach Mickey Callaway, and McCann hit a towering drive to right on the next pitch.

The home run was McCann's 20th of the season and second is as many nights. Drew, who homered Tuesday, hit a 1-1 pitch to right for his 15th home run. Drew's double scored Didi Gregorious, who started the fourth with a single.