BOSTON — The Yankees set the franchise record for home runs in a single season on Sunday night and still have 18 games to go.

Gleyber Torres, Mike Tauchman, Aaron Judge homered as the Yankees beat the Red Sox, 10-5.

“Today was really good to see because I felt like we were heavy again,” Manager Aaron Boone said. “When you play us, my goal is always when you’re facing our offense, I want you to feel it. Today I felt like that was the case. I felt like we made it very difficult on them.”

The Yankees have won two of three in the four-game series that wraps up Monday night. The slumping Red Sox announced after the game that they had parted ways with their president of baseball operations, Dave Dombrowski.

Manager Alex Cora said he was “shocked, obviously.”

While the Boston clubhouse was almost silent after the loss and the stunning news of a major front-office move, the Yankees’ clubhouse was thumping with loud music and yet another victory celebration.