I want to use VSTS Release Management to deploy my Web Application to my different deployment locations (dev, test, prod). At the moment I use different build to solve my problem but i want to have one single build and then I want deploy to dev, test and prod step by step using the Release Management but deploying always the same build. My Problem is, that for my AngularCLI application I have different build script in the package.json file:
"build:prod": "ng build --prod",
"build:dev": "ng build --dev",
"build:test": "ng build --test",
With this I set the different environments defined in the environment.*.ts files. Using different builds I can use different build script like npm run build:prod for production. The same problem I have on different web.config transformations in my webapi. What is the best way to have a single build and different steps in the release management do deploy to the different environments with the right configurations?