Build Job
Checks out code, sets up Node.js, installs dependencies, builds and tests with npm.
This project demonstrates automated deployment of a Node.js application to Azure Web App using GitHub Actions. The workflow ensures repeatable, reliable, and production-friendly deployments with clear separation of build and deploy stages.
The pipeline has two major jobs: a Build job that prepares and packages the app artifact, and a Deploy job that retrieves the artifact, logs into Azure, and publishes the app using azure/webapps-deploy.
Checks out code, sets up Node.js, installs dependencies, builds and tests with npm.
Application is zipped and uploaded as build artifact using actions/upload-artifact.
Pipeline downloads artifact, extracts it, authenticates to Azure, and deploys.
Prepares source code and runtime environment for consistent builds.
Stores build outputs to pass safely between workflow jobs.
Authenticates with Azure and deploys the Node.js app to Azure Web App.