You can publish all attributes with existing connections to nodes outside the asset with the Publish Connections option.
To publish existing input and output connections to an asset
Any encapsulated attribute connected to an external node is published to the asset.