Prod and QA setup

Hi, we are starting to get into github and are running into a few challenges.

Currently, we use shiny and R to develop a front end application and use Github for version control.

We use github desktop on a windows PC to code qnd develop the application and have the libraries installed…so it is sort of our QA environment.

We also have a Linux Ubuntu machine in Azure which is sorta our production box.

Issue is we are unsure whether we should use github actions or Azure devops to push code from qa to prod, and hiw to even do it.

Secondly, if updating libraries breaks the code…is there an easy way to roll back to previous versions of the libraries?

What is a good process overall?