NEW YORK — CC Sabathia kept up his recent resurgence with seven sharp innings, Brett Gardner sparked another scoring burst and the New York Yankees beat the Detroit Tigers 4-0 on Friday night for their fifth straight win.

Carlos Beltran and Didi Gregorius each added two hits as the Yankees (31-30) moved over .500 for the first time since they were 4-3.

The Tigers began a 10-game trip by losing for the second straight time following a five-game winning streak.

Sabathia (4-4) gave up five singles, walked two and struck out four. He hasn’t allowed more than two runs in his last six starts and left with a 2.28 ERA – the lowest he’s ever had after 10 starts or more in any season.

BLUE JAYS 4, ORIOLES 3: Edwin Encarnacion hit a game-ending home run in the 10th inning as host Toronto snapped Baltimore’s winning streak at five.

Encarnacion hit an opposite field shot off Brad Brach (5-1) to begin the 10th and end an 0-for-19 slump.

Chris Davis hit a two-run homer and Jonathan Schoop added a solo blast for the Orioles, who came in tied with Seattle for the major league lead with 89 home runs.

WHITE SOX 7, ROYALS 5: Alex Avila hit two of host Chicago’s season-high four home runs and the struggling White Sox gave a shaky Chris Sale his major league-leading 10th win while the Royals suffered their eighth straight loss.

The defending champions matched their longest losing streak since May 2013, while the White Sox opened the weekend series with their second straight win after dropping 20 of 26.

RAYS 4, ASTROS 3: Steve Pearce continued a hot stretch with three hits and two RBI, helping Tampa Bay to a win at St. Petersburg, Florida.

Pearce had a two-run double in the first inning, and Logan Forsythe and Brad Miller drove in runs with two-out hits off Lance McCullers (3-2) in the second to give Matt Andriese (5-0) an early four-run lead.

NATIONAL LEAGUE

NATIONALS 9, PHILLIES 6: Stephen Strasburg struck out 10 and won his 13th straight decision despite a rocky beginning, and Washington rallied from a four-run deficit to win at home.

Strasburg (10-0) labored early but finished strong, retiring the final 14 batters he faced after Joseph’s two-run homer in the third. He allowed four runs, five hits with one walk over seven innings.

Strasburg’s winning streak, already a franchise record, matches the longest in D.C. baseball history since Walter Johnson won 13 in a row for the Washington Senators in 1924.

CARDINALS 9, PIRATES 3: Pitcher Adam Wainwright, pinch-hitting because the Cardinals were out of position players, hit a two-run, two-out double to spark a six-run 12th inning at Pittsburgh.

BRAVES 5, CUBS 1: Bud Norris (2-7) pitched seven strong innings and Adonis Garcia and Tyler Flowers hit homers in a win at Atlanta.

INTERLEAGUE

REDS 2, ATHLETICS 1: Adam Duvall doubled home the tying run in the seventh and scored on Sonny Gray’s second wild pitch of the inning, rallying host Cincinnati to its first interleague victory of the season.