Run build tasks before publishing.