@Lereko Foloko Thanks for reaching out to Microsoft Q&A, apologize for any inconvenience caused on this.
Can you try setting the NodeJS runtime version of app service to node:18-LTS by running the below cmdlet from cloud shell.
For Linux app service:
az webapp config set --resource-group <resource-group-name> --name <app-name> --linux-fx-version "NODE|18-lts"
If your application is running on windows-based app service plan then you can change the runtime NODEJS version by updating the application setting value WEBSITE_NODE_DEFAULT_VERSION
to ~18
.
Once you update the runtime version, I would suggest you login/connect to kudu console (using Advanced tools under Development Tools widget of your webapp in the portal) and check the respective node and npm (node -v, npm-v) runtime versions.
Since you are using GitHub Actions to build and deploy your application to app service make sure that in your workflows/***.yml file in which agent is using the node 18LTS version for building your application as shown below.
For more information about which npm version that particular NodeJS version is using you can refer to this NodeJS official releases documentation.
Feel free to reach back to me if you have any further questions on this.