An example NodeJS-ExpressJS-MySQL CRUD application deployable to AWS Elastic Beanstalk.
See the main repository at DigiPie/nodejs-mysql-cloudformation.
For GitHub Action, see .github/workflows/main.yml.example. It uses the GitHub Action: beanstalk-deploy. You will need to rename the file as main.yml, and set the secrets: AWS_ACCESS_KEY, AWS_SECRET_KEY, APP_NAME, ENV_NAME and AWS_REGION.
Make sure your AWS user have sufficient permissions. See this StackOverflow thread.
See Yashwardhan Pauranik's Medium article on 'Deploy to Beanstalk using GitHub Actions' for more information.