Add the beer to the remaining onions , stir to scrape up any browned bits and continue to cook over medium-high heat , stirring occasionally , until the onions are moist and the beer is somewhat reduced , about 10 minutes .