Hello.
I had a similar problem with my truck about 4 months ago. The battery light came on and I took it to the dealer. It was a faulty generator control module. They fixed it under warranty. That may be what is wrong with yours, and that may have caused your old alternator to die. The module is attached to the negative battery cable with zip ties. It may be in a different place on your truck. Hope this helps.
Jack