SAN FRANCISCO -- Sometimes, even veterans get nervous.
"You just try to take a deep breath and make pitches," the 36-year-old right-hander said. "You're definitely thinking, `not a lot of room for error right there."
Albers allowed just one inherited runner to score in a key spot, and Eric Thames and Jesus Aguilar homered to help the Milwaukee Brewers avoid a three-game sweep with a 5-3 victory over the San Francisco Giants.
Christian Yelich had two doubles, extending his season-high hitting streak to 13 games. The reigning NL MVP is batting .472 (25 for 53) with five homers over that stretch.
Albers (3-2) pitched the fifth for the win, working in relief of starter Chase Anderson, who gave up three runs in four-plus innings.
"Matt came in in a big spot, was able to limit the damage to just one run," Yelich said. "With the bases loaded no outs you take that any time, consider that a victory.
"That was really the game right there. It was a big spot."
Albers, Junior Guerra, Jeremy Jeffress and Josh Hader combined for five shutout innings of two-hit ball in relief for the Brewers. Hader pitched a perfect two final innings, striking out three to get his 17th save in 18 chances.
"Our bullpen had a great game today," Brewers manager Craig Counsell said. "Really good stuff. That was the game, the bullpen today was the game for sure, and they did a nice job."
Thames' homer, his 10th of the season, off Giants starter Jeff Samardzija (3-6) in the fifth gave the Brewers a 4-2 lead. Samardzija gave up four runs on nine hits and two walks in five innings. The 34-year-old threw 114 pitches.
Aguilar hit a pinch-hit homer off Giants reliever Derek Holland leading off the sixth to make it 5-3.
The Brewers took an early lead on RBI singles from Yasmani Grandal in the first and Ben Gamel in the second. The Giants tied it in the second, when Evan Longoria's leadoff triple started a two-run inning.
Yelich's double made it 3-2 in the fourth.
The Brewers had lost four of their previous five after winning straight.
The Giants had their season-high four-game winning streak snapped as they concluded their homestand at 5-3.
"We didn't cash in enough," Giants manager Bruce Bochy said. "There was a lot of traffic out there and we couldn't get the big hit."
HOLE IN ONE
With two outs and Ben Gamel aboard in the top of the second, Yelich hit a drive to right that slipped through a small gap between the fencing doors in right field. The fluky play cost the Brewers a run with Gamel, who would have easily scored if the ball remained in play, held at third on the ground-rule double.
"It went through the wall, we obviously wish it didn't go through the wall," Yelich said. "Just one of those freak baseball plays."
Brewers second baseman Mike Moustakas had one hit, extending his hitting streak to 10 games. ... Belt was 0 for 3, ending his18-game on-base streak.
GIANTS: LHP Will Smith got an off day after pitching in four games in five days. Smith worked a 28-pitch ninth for his 18th save on Saturday.
Brewers: RHP Jhoulys Chacin (3-7, 5.74 ERA) will come off the injured list (lower back strain) to start Monday's series opener in San Diego.
Giants: RHP Tyler Beede (0-2, 8.06) will make his first career start against the Dodgers in Monday's series opener.
More AP MLB: https://apnews.com/MLB and https://twitter.com/AP-Sports
Braves pull Freeman (elbow) as precaution
Braves first baseman Freddie Freeman was removed from Friday night's game against the Nationals as a precaution because of elbow soreness.
Rizzo's slam among 5 Cubs homers, Chicago rips Bucs 17-8
Anthony Rizzo hit a grand slam, Willson Contreras launched two long solo homers and the Chicago Cubs kept pace in the NL wild-card race with a 17-8 win over the Pittsburgh Pirates on Friday.
Phillies look to bolster wild-card hopes versus Red Sox
While the Boston Red Sox have bottomed out in the American League wild-card chase, the Philadelphia Phillies are still alive and well in the National League playoff hunt.
Severino: Expect same 'electric guy' in '19 debut
Yankees right-hander Luis Severino said fans can expect "the same guy that they've been watching all the past years" when he makes his first start of the 2019 season Tuesday against the Angels.
With Hand out, Indians bring up Karinchak vs. Twins
Reliever James Karinchak was added to the Indians roster on Friday as Cleveland opened a critical three-game series with the AL Central-leading Twins,
Trout scratched from anticipated return to lineup
Mike Trout was scratched from the Angels' lineup on Friday after it was expected that he would play for the first time since undergoing a procedure for a pinched nerve in a toe on Monday.