Daniel Descalso's two-run homer in the bottom of the seventh had put St. Louis ahead by a run, before the Yankees knotted game at 4 in the top of the eighth on Austin Romine's RBI single.
Cardinals closer Jason Motte took the mound in a 2-2 game in the sixth and allowed a leadoff walk and then a one-out double to Chris Stewart. Ronnier Mustelier followed with a groundout that scored Francisco Cervelli. The run was the fifth allowed by Motte in four spring innings.
Making his second appearance of the spring, Yankees right-hander Ivan Nova covered the first three innings. He allowed three hits -- all singles -- and one run, while striking out two. Nova, who is seeking a bounce-back year in the Yankees' rotation, threw 27 of his 45 pitches for strikes.
The Cardinals started Joe Kelly, one of two pitchers left in the team's competition for the fifth rotation spot. Kelly's command wanted throughout the afternoon, though. He walked three, hit a batter and allowed two hits, including an RBI single by Cervelli.
"My arm feels outstanding," Kelly said. "Knock on wood, I couldn't ask anything better at this point. My body feels great. Everything feels good. It's just something for me to build on."
It took Kelly 46 pitches (24 strikes) to get through two innings, and that would mark the end of his day. Seth Maness, who is projected to begin the year in the Triple-A rotation, followed with three scoreless innings.
The Cardinals evened the game at 2 with a home run from Pete Kozma, who learned earlier in the day that he's in line to be the team's starting shortstop this season, with Rafael Furcal set to undergo Tommy John surgery on his right elbow. Kozma's blast -- his second of the spring -- came off right-hander Brett Marshall.
Up next: Adam Warren takes the mound for the Yankees' second straight game in Jupiter on Friday. He'll face the Marlins' Nathan Eovaldi in a game that gets under way at 1:05 p.m. ET. Dan Johnson is expected to start at first base, as he begins attempting to show the club that he's capable of handling a large chunk of the at-bats and innings in Mark Teixeira's absence.
Jenifer Langosch is a reporter for MLB.com. Read her blog, By Gosh, It's Langosch, and follow her on Twitter @LangoschMLB. This story was not subject to the approval of Major League Baseball or its clubs.