As part of our github action, we have set the delete-only-pre-release-versions tag as true. However the package is not able to differentiate between release and pre-release. Even the release packages are getting deleted.
Our semver for the release package is like 1.12.0. I noticed that in the code it matches with regex ^(0|[1-9]\d*)((\.(0|[1-9]\d*))*)$.
Even then it's deleting all the packages.
action file:
package-name: 'abc'
package-type: 'container'
token: ${{ secrets.GITHUB_TOKEN }}
min-versions-to-keep: 8
delete-only-pre-release-versions: true
We also tried setting ignore versions explicitly. However, its still deletes the packages.
action file:
package-name: 'abc'
package-type: 'container'
token: ${{ secrets.GITHUB_TOKEN }}
min-versions-to-keep: 8
ignore-versions: '^(0|[1-9]\d*)((\.(0|[1-9]\d*))*)$'