There have been numerous time I’ve need to publish multiple documents in one go. You could use PowerShell or better still the UI…
Welcome to the Site Content and Structure administration page: https://[TENANT].sharepoint.com/<SITE-PATH>/_layouts/15/sitemanager.aspx
The Site Content and Structure has been around since SharePoint 2007 and it really shows. But don’t let that get in the way of useful functionality. It is still available in SharePoint Online, even though the link has been removed from the Site Settings page.
Imagine you need to publish 50 site pages in one go:
Navigate to the Site Content and Structure using the URL above