I have an angular project with dev and master branches and want the following: An test environment and production in Azure Devops. When something gets commited to dev I want the dev branch code to be deployed to the test environent, when code gets commited to master, I want the master branch to be deployed to the production environment.
My question is as follows: I need 2 artifacts based on "ng build --dev" and "ng build --prod". How can I achieve this? Do I need to add a "azure-pipelines.yml" file to the master and dev branch? If so, if I merge dev to master, the "azure-pipelines.yml" from dev gets merged with master... What is the best approach to this?