I've wondered for years how you are expected to make sure of that in practice.
Setscrew clamps are designed with rounded tips, so as not to penetrate the coating of the metal roof. This is one of the selling points of S-5 clamps, that they keep the coating intact and don't introduce corrosion or leaks. This is OK for a conductive coatings like galvalume, or galvanized sheet steel, where you'd automatically get your ground through the clamps that mechanically secure the racking.
However, a lot of metal roofs don't necessarily have a metallic coating. Powder-coating or paint would be an impediment to electrical continuity. And for metal roofs like trapezoid fold roofs, where you attach with penetrating screws, are commonly installed with rubber sealing washers, which would also hinder electrical continuity.
Are metal roofs bonded to building steel inside the ridge cap? Or somewhere else that's hidden from view?
Perhaps the clips that secure the roofing to the steel purlins, might bond the metal to the purlin, if the metal roofing is only coated on one side.
Metal roofs may also be installed on wood decking or wood purlins, which wouldn't help you for obvious reasons.