By MIKE FITZPATRICK AP Baseball Writer

NEW YORK (AP) — Andrew Heaney pitched seven smooth innings, Anthony Rizzo hit a two-run single in his return from COVID-19, and the New York Yankees beat the Boston Red Sox 5-2 on Wednesday night to match a season best with their sixth straight victory.

Substitute shortstop Andrew Velazquez, born nearby in the Bronx, delivered a pair of RBI singles from the No. 9 spot in the batting order and combined with Rizzo on a terrific defensive play for the dramatic final out.

READ MORE: Massachusetts Senate Passes Bill To Add Gender 'X' Option On Birth Certificates, Drivers Licenses

Yankees closer Aroldis Chapman, just activated from the injured list, was pulled by manager Aaron Boone with two outs and two on in the ninth. Lucas Luetge retired Kevin Plawecki on a grounder for his third major league save and first since his 2012 rookie season with Seattle.

Luetge became the sixth different New York reliever to earn a save in the past eight days as the Yankees finished a three-game sweep of their longtime rivals that vaulted them into playoff position ahead of struggling Boston.

READ MORE: Costco Limiting How Much Toilet Paper, Paper Towels And Cleaning Supplies You Can Buy Again

New York, which has won 18 of 23, now holds one of two AL wild cards in a tight three-way race that includes the Red Sox and Oakland Athletics.

Xander Bogaerts and Hunter Renfroe homered for Boston, which has dropped 14 of 20. Nick Pivetta (9-6) was chased in a four-run second inning, and the Yankees improved to 6-10 in the season series after losing the first seven matchups.

The teams meet one more time, Sept. 24-26 in Boston.

MORE NEWS: 2,554 At Massachusetts Schools Test Positive For COVID-19 In Last Week

(© Copyright 2021 The Associated Press. All Rights Reserved. This material may not be published, broadcast, rewritten or redistributed.)