「Vて+しまう」 to express an action that has taken place unintentionally often with unsatisfactory results (guidetojapanese.org). I have a sentence below and I don't know what the 「しまう」 for.
試験が終わった!今日は飲んじゃおう!(~のんでしまおう)
meaning: Oh, the exam is over! I am going to have a drink!