Linking packages to commits and tags/releases

I’ve noticed on some repos that the “Package Details” section on the package page includes a commit hash and a tag. For example here:

I have not been able to have this link created for my own packages. I have a Tag that is the same as the package version, and a Release on that Tag with the same title, but my Package Details do not reference my tag.

I am publishing my packages using the Maven.

What are the conditions under which this link is created, or do I need to manually create the link in some way?

An update: I’ve found that if I create the tag before the publishing the Package then the link is created. But typically I tag when doing a release, and I release from the Packages, so I have a bit of a chicken and egg problem.

Is there any way to get the link to happen if the Package is created first and the Release second?