Better exit codes, fix publish path.