Would it be possible to share your file for testing. You can upload it to a shared location such as Creative Cloud, Dropbox, or Google Drive and share the URL over a private message. To send a private message, click or hover over my profile and select Message.
Let us know if you need more info.
Thanks,
Preran
Hi miac11318964,
Looks like you are trying to create various versions of a dropdown menu in XD and your set up is something like the one I have created in the screenshot below:

If this is the case as yours the XD will only export Menu and Dropdown artboards only. Please refer to the notes mentioned below in Publish your prototype and/or design spec and share it with stakeholders by providing a public or private web link. that explains this behavior.
- If you publish your design without interactions, all your artboards are uploaded and users can navigate using the keyboard arrow keys. The order of your artboards is left to right, top to bottom.
- If your design includes interactions, only those artboards connected to the Home artboard are uploaded and shared.
As a workaround, you can create invisible items on the home page and link it with "Version 1" artboard and create an invisible item in "Version 1" and link it with version 2. This will ensure all the artboards are exported.

I also understand that you would like to have an option that lets you export all artboards in prototype, hence I would advise you to visit the UserVoice link below and vote and comment for this feature.
Option to publish all screens even without prototyping – Adobe XD Feedback : Feature Requests & Bugs
Regards,
Vivek