Hello Grace,
Please make sure that the major and minor versions are enabled for your library. If you have permission to do so, you can manage versioning settings for a library from the Library Settings.
For more info, see Enable and configure versioning for a list or library .
https://support.microsoft.com/en-us/office/enab...
Once it's enabled follow redo the process of publishing or you can use this article as your guide.
https://support.microsoft.com/en-us/office/publ....
and
https://learn.microsoft.com/en-us/microsoft-365...
I hope this helps, let me know if you have any other questions.
Kind regards,
Jayzar