First, I had to be willing to learn. Everything. Constantly. Whatever I knew was never enough. There was always some new specialty, some new technique, some new tool. I didn't waste time on puttering around with these things for their own sake, but nor did I balk at picking them up just because they were unfamiliar.
Second, I had to take risks. I changed specialties. I took jobs at companies, or with technologies, that had uncertain futures. I bit off more than I was sure I could chew. It's much easier to make these kinds of leaps by switching companies, but it's not unheard of to do it within the right kind of company either.
Third, I put in the effort. Part of this is developing depth as well as breadth. Neither alone is sufficient, you need to develop both which means you need to recognize when to pursue each kind of opportunity. Also, nobody likes fair-weather friends and quitters. You have to show you can stay with the ship through rough weather, even if you don't always choose to.
Fourth, I kept myself sane. Charging hard can literally drive you nuts. You need friends, and hobbies, and sometimes you just need a break. I went part-time for a couple of years to avoid burnout. Sooner or later most people will hit that point. If they don't steer away from the abyss, they'll fall in - quite often right before they hit their best earning years. Dumb move. Learn to ease up on the throttle when you need to.