NEW YORK — Masahiro Tanaka took a perfect game into the sixth inning and struck out a career-high 14, pitching the New York Yankees past the Tampa Bay Rays 6-1 Friday night for their fifth straight win.

Brett Gardner hit a leadoff home run, Aaron Judge lined his AL-leading 33rd homer and Clint Frazier added a three-run shot to boost Tanaka (8-9). With their spurt, the Yankees moved past Boston and into the AL East lead for the first time in a month.

On Thursday night, Gardner won the opener of this four-game set between playoff contenders with a homer in the 11th. Judge wound up losing half of his front left tooth in the celebration – he got a temporary fix earlier in the day.

Tanaka struck out the first five batters, all swinging. He set down 17 straight before Adeiny Hechavarria grounded a sharp two-out single up the middle, past the diving shortstop, Didi Gregorius. Tanaka impassively watched the ball roll into center field and, after a brief ovation from the fans, went back to work.

ANGELS 7, BLUE JAYS 2: Parker Bridwell pitched a career-high 71/3 innings to win his third straight decision, C.J. Cron hit a two-run homer and Los Angeles won at Toronto.

Mike Trout had two RBI, and Yunel Escobar had two doubles and an RBI for the Angels.

Cron connected off Chris Smith in the ninth, his fifth.

Toronto’s Justin Smoak hit a solo homer off Cam Bedrosian in the ninth, his 29th.

ASTROS 6, TIGERS 5: Josh Reddick hit a three-run homer in the eighth inning, lifting Houston at Detroit.

The Astros trailed 5-3 when Detroit brought in reliever Bruce Rondon (1-2) to start the eighth. He allowed singles to Derek Fisher and Jose Altuve before Reddick’s drive sailed well beyond the wall in right field.

Reddick drove in five runs and the Astros won despite getting only three innings from starter Dallas Keuchel in the left-hander’s return from a neck injury.

NATIONAL LEAGUE

BREWERS 2, CUBS 1: Brent Suter tossed seven scoreless innings and Milwaukee slipped past the visiting Cubs to move within a half-game of Chicago for first place in the National League Central.

Suter (2-1) limited the Cubs to four hits. He struck out five and walked one in a career-long outing.

Corey Knebel notched his 18th save in 23 attempts.

PHILLIES 10, BRAVES 3: Aaron Altherr homered twice and Jake Thompson pitched five scoreless innings in an emergency start to lead Philadelphia at home.

Tommy Joseph and Cameron Rupp also homered, and Freddy Galvis had three hits for the Phillies, who have scored 19 runs while winning their last two.

Thompson (1-0) replaced Jeremy Hellickson, who was scratched an hour before the game.

MARLINS 7, REDS 4: J.T. Realmuto had three hits, including a tie-breaking home run, to spark host Miami to its sixth win in eight games.

Mike Aviles added a pinch two-run homer and Tyler Moore had an RBI double in a pivotal four-run seventh for the Marlins.