fix: change Publish internally to Publish #5878