I created the Azure Static Web App via the Azure Portal (you can also use the VSCode Extension, or the Azure CLI), which automatically created a GitHub workflow (azure-static-web-apps-salmon-rock-0fb035b03.yml) in my GitHub repository.
The problem I encountered was that my blog required a different Node.js version than the one that was used by the action. The action was using the default Node.js version (14.x), while my blog required version 16.x.
Because the GitHub action doesn't support specifying a Node.js version, the solution is to specify the Node.js version within the
To do this, use the
I appreciate it if you would support me if have you enjoyed this post and found it useful, thank you in advance.