This idiom is often used when someone reveals something that was meant to be kept a secret.
In the context of a surprise party, if someone "spilled the beans,'' it means they told others about it — ruining the surprise.
So the correct meaning is: "Shared a secret.''
Options A, C, and D do not match the idiom's true meaning.