I have been running circleci for the first time and configured the file to build my static react app in s3 bucket. But the npm run build is failing with status code 1. I do not understand the problem since it is running perfectly in local machine. very much frustrated. If any one can help it would be great.
name: Installing AWS CLI
sudo apt-get update
sudo apt install python3-pip
sudo pip3 install awsebcli --upgrade
- run: npm install && npm run build
- run: aws s3 sync build/ s3://exampleapp --delete
workflows: version: 2 execute_bulk: jobs: - build_deploy