CI/CD Pipeline to publish Projects from GitHub

Hi all

We are currently in the process of developing a CI/CD pipeline to publish Projects from GitHub to QA and then to Prod.
The Process is
Developer pushes code into ‘Main’ Branch (when the project is ready to publish , until then they work on ‘Dev’ branch) (Version 1.0.0 in Ghub and )
Pipeline starts and publishes the project into our Test/UAT Tenant - Version incremented to 1.0.1 in Orchestrator but GitHub Repo - project.json still shows 1.0.0

How do we keep the Repo in Sync with Orchestrator like it happens in Studio ?