Austin Riley and Matt Olson hit back-to-back homers off Jacob deGrom in the second inning and Dansby Swanson later connected off the Mets ace as the Atlanta Braves beat visiting New York 5-2 Friday night to move into a tie for the NL East lead.

Both teams are 98-59 with five games to go in the regular season.

Riley and Olson became the first players to hit back-to-back homers off deGrom (5-4) since Freddie Freeman and Josh Donaldson did it for the Braves on June 18, 2019.

Swanson homered off deGrom after he had retired seven in a row to make it 3-1.

Max Fried (14-7) retired 10 straight through Tomas Nido’s groundout to end the fifth and was done for the night because he was feeling ill. The lefty allowed four hits and one run with no walks and three strikeouts in five innings.

ORIOLES 2, YANKEES 1 >> Aaron Judge didn’t come close to hitting his 62nd home run, going 1 for 2 with a pair of walks as the Baltimore edged New York at Yankee Stadium.

One game after tying the American League home run record that Roger Maris set in 1961, Judge struck out in the first inning, singled in the third and walked in the sixth against Jordan Lyles, then was intentionally walked in the eighth by rookie Félix Bautista.

Orioles starter Jordan Lyles (12-11) allowed four hits in seven-plus innings. He tied his season high with nine strikeouts and walked one.

Domingo Germán (2-4) walked his first two batters in the sixth and retired Ryan Mountcastle on a groundout, Zach Britton relieved and walked Gunnar Henderson and then threw a pitch to pinch-hitter Jesús Aguilar that went to the backstop and allowed a run to score that broke a 1-1 tie.

PHILLIES 5, NATIONALS 1 >> Rhys Hoskins hit his 30th home run, Bailey Falter pitched six scoreless innings and Philadelphia snapped a five-game losing streak with a win at Washington in what was to be the opener of a day-night doubleheader. The second game was rained out and will made up in a doubleheader today.

J.T. Realmuto had two hits and stole three bases, giving him 21 steals and 21 home runs. He is the second 20-20 catcher in major league history after Ivan Rodriguez of the Texas Rangers in 1999 (35 homers, 25 stolen bases).