Updates publish
to USES_ENVIRONMENTS
#17313
Merged
publish
to USES_ENVIRONMENTS
#17313