baking animation doesn’t effect translation and rotation values, simple when baking the animation is to insert a key on each frame, “baking” the animation into the timeline and converting it from curves and tangents into frame by frame animation.
In blender .glb/.gltf export menu, under animation tab > check Bake All Objects Animations
If you hover over this check box the help tip explains exactly what you want