Set environment for a library

Assign a library to an environment for publishing.