fixes #32: publish: exit code