You should clean your underlayer at least one time during the season with standard soap. After that, make sure it is completely dry and then use a waterproof sealant to maintain the moisture-wicking properties. When the season is over, it’s not a bad idea to pick up some soap treated with a water repellent specifically for ski gear.
Many manufacturers also give you recommended care instructions, too.