I'm deploying an Angular app to Azure Static Web Apps using GitHub Actions. The build process completes without errors, but the workflow hangs on the "Post Run actions/checkout@v3" step until it eventually times out and the deployment is aborted. This issue is preventing my app from being deployed successfully.
Below is a snapshot of my GitHub workflow file build process:
The error is solved now, the problem was neither with the app nor the Azure Static Apps configuration, rather it was due to autostart functionality of the custom-webpack-bundle analyser added to the app which prompted opening the browser during the production build, which Azure couldn't do; hence it got hang & the process ran indefinitely.
New webpack.config.js code:
const BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin;
const plugins = [];
if (process.env.ANALYZE) {
plugins.push(new BundleAnalyzerPlugin());
}
module.exports = { plugins };