“learnt” - transitive verb, eg “that’ll learnt ya!”
I would suggest the word learn’t is an archaic pronunciation of the word learned.
It is spoken by the old country folk of scottish heritage around here, East Tennessee and especially south west Virginia. It is seldom heard now.
“I learn’t to wash my hands before eating”