npx gltfjsx scene.gltf --transform
it creates a ready made component and a small animation set up using drei/useAnimations. it looks like this: GLTF Animations - CodeSandbox useAnimation is a small helper around three.mixer, removing all the boilerplate and creating clips automatically.
see GitHub - pmndrs/gltfjsx: 🎮 Turns GLTFs into JSX components
ps. if gltfjsx doesn’t create actions for you, then the gltf has none, which might be the reason why your code above didn’t work.