Answers
- An environment variable calledÂ
CI
 needs to be set toÂtrue
for Jest tests to work well in a CI environment. - When we change theÂ
azure-pipelines.yml
 file, it is automatically committed and pushed to our master branch in our source code repository. Thetrigger
option in the file specifies that a build should trigger when code is pushed to the master branch. So, a build is triggered when this happens. - The
-script
task can be used to execute npm commands. - The
PublishBuildArtifacts@1
task can be used to publish artifacts to the pipeline. - The frontend build sets an environment variable calledÂ
REACT_APP_ENV
, which the code uses to determine which environment it is in. This is the reason we have different frontend builds. - The
Azure App Service Deploy
task type in a release pipeline stage can be used to deploy build artifacts to Azure App Service.