npm install
The package build and compile tool Webpack will help you compress and output production code in public folder.
$ npm run build-prod
$ git add .
$ git commit
$ git push
finally, open the heroku dashboard and click deploy tab
Choose github in "Deployment method" and then find your repo and branch
click "Deploy Branch" button.