Chase d’Arnaud’s home run highlighted a four-run first inning for the Giants, but they couldn’t hold onto the lead. Buster Posey saved them with a walk-off hit in the 13th.

The 5-4 victory gives the Giants the series win over the Cubs. After an off-day on Thursday, the Giants welcome the A’s to town on Friday.

Johnny Cueto, making his second start since coming off the DL, went five innings. He allowed six hits, three earned runs, three walks and struck out seven.