The best way is to tackle it triggering a workflow. In the process step, check for the references of resource that is being published, so not to miss the references for sure.In AEMaaCS as well, Adobe insists publishing through the publish content tree workflow.