Check the scopes that you want to set it in, in my case I want it set for the entire application lifespan, so I set it in all possible scopes (to also effect scopes in flight).
export const setPostInitRelease = (releaseName: string) => {
// set the release value using an event processor
const eventProcessor = (event: { release: string | undefined }) => {
event.release = releaseName
return event
};
Sentry.getGlobalScope().addEventProcessor(eventProcessor)