He would not have told her. If Robert got so much of a whiff of a hint of a whisper of an idea that Jon might be a sekrit Targ, he would have killed him immediately, and Lyanna’s “promise me, Ned” (in the books) is probably “promis me you’ll keep my baby safe and not let Robert kill him”.