You can do the train ride through Chilikoot Charters, they have a train up/van down or van up/train down option which shortens the excursion. Skagway is a long port time so if you plan it right you should be able to do both, gold mining is relatively short I think.