fixes #6691, push access to METADATA should not be required for Pkg.publish(). Also check if any changes have been made.
Merge pull request #6818 from simonbyrne/pkgpublish

push access no longer required for Pkg.publish()