Made some improvements, including so that the publish task does not overwrite the pinned (MAJOR) version.
Still having some issues with CDN invalidation.