Github registry version doesn't update

I followed the Quickstart for GitHub Packages guide, When i try to make a new release it always fails with this error message : " You cannot publish over the previously published versions "
i tried using
“publish”: “npm publish --access public”

and i removed the git+ from my “url”: “https://github.com/Xx-AmrHossam-xX/git-reg.git

but nothing worked.