Brett Gardner, DJ LeMahieu and Luke Voit homered on consecutive pitches for the New York Yankees — and that was just the start of the night's power surge.

By the time the Bombers' barrage was over, the Yankees had hit a record-setting 1.42 miles of home runs in a three-game sweep of the Toronto Blue Jays.

The Yankees tied a major league record with five home runs in an inning and hit six overall in a 10-7 win Thursday night that extended their winning streak to eight.

New York set a major league record for most home runs in a three-game span with 19 — three more than the previous high — and became the first team with six or more home runs in three straight games. The Yankees (29-21) outscored Toronto 43-15 over the three games and outhit the Blue Jays 44-28, opening a 2 ½-game lead over Toronto for second place and closing within one game of the Twins (31-21) for a first-round playoff series at home.

Voit's home run was his major league-leading 20th.

"That was a lot of fun." Yankees manager Aaron Boone said. "Obviously a tie game going into that inning [the fourth] and then everyone just started unloading with real good at-bats."

"It was awesome," said Giancarlo Stanton, who had four hits for the first time since July 23, 2018. "In general it was just amazing to see everyone contribute like that."

After losing 15 of 20 games and nearly dropping out of the AL's eight playoff spots, the Yankees have outscored their opponents 71-20 over their winning streak.

Tampa Bay 3-10, Baltimore 1-6: The East-leading Rays qualified for the postseason after completing a doubleheader sweep of the host Orioles.

Cleveland 10, Detroit 3: Shane Bieber took a shutout into the eighth inning and Jose Ramirez homered twice on his 28th birthday for the visiting Indians. Cleveland ended an eight-game losing streak. Bieber struck out 10 and became baseball's first eight-game winner.

Notes

• Mets ace Jacob deGrom is day-to-day after leaving his start Wednesday night with a right hamstring spasm.

• Phillies righthander Jake Arrieta will not pitch again in the regular season because of a strained right hamstring.