How can I use semantic versioning for releases when the final version is unavailable at buildtime?

Hi Sentry community

I’m using the Next.js SDK in my project and I would like to know how I can use semantic versioning in Sentry correctly.

The issue is that during build (when the Sentry release gets created) I do not know yet if the build will be released to the public and if the version needs to be bumped. How can I still use semantic versioning in this case? Is there a way to alias/rename the release after a deployment?