Automate package release.
Fix error handling.
Make tagging/publishing dep on clean working dir.