updates to release process after v0.40.0
Merge pull request #6073 from rolandwalker/releasing_updates_0.40.0

updates to release process after v0.40.0