Mac Williamson capped an eventful Saturday by drilling a 12th-inning, tiebreaking RBI single that propelled the Giants past the New York Yankees, 2-1, and ended San Francisco's six-game losing streak.