This might be a working solution, but usually it is not recommended to add the version info into composer.json of your package beacuse the versioning should be handled by Gitlab / Git alone.