Jorge Posada also tied a franchise record for home runs by a catcher in a season.
In his final start of the regular season, Pettitte (21-8) allowed an unearned run and six hits over five innings with a walk and three strikeouts. He matched his win total in 1996, when he finished second in the Cy Young voting behind Toronto's Pat Hentgen.
Posada hit his 30th homer, a three-run shot in the third that equaled the club record for catchers set by Yogi Berra in 1952 and 1956. Posada also went over the 100-mark in RBI for the first time in his career.