https://www.sageadvice.eu/can-i-use-the-bonus-action-provided-by-shield-master-before-i-execute-any-attacks-from-the-attack-action/
Can I use the bonus action provided by Shield Master before I execute any attacks from the Attack action?