Read about the plugin here.
sanity install @sanity/scheduled-publishing
Simply installing the plugin adds the ability to schedule the publication of all documents over time from the drop-down list level next to the "Publish" button. The snippets below show the customization options for this.
- Change Publish button to Schedule for all documents that are
type1
andtype2