-Only push changes in the main branch
-
Run the command
npx create-expo-app app-name-here
-
Navigate to the folder
cd app-name-here
-
Run the command
npm install gh-pages
-
Run these next commands to coorelate your project with github
git init
git add .
git branch -M main
git remote add origin https://github.com/git-username-here/git-repo-name-here.git
git push -u origin main
npm add -d gh-pages
-
Open the
package.json
file -
Add
"homepage": "http://git-user-name-here.github.io/git-repo-name-here"
under the'name'
-
Add
"deploy": "gh-pages -d web-build", predeploy": "expo export:web",
inbetween the brackets of"scripts:"
-
Open the
manifest.json
file -
Add your site name to the
"start url"
inbetween the forward slash/
and?utm_source=web_app_manifest
*This is for users who add your site to their homepage -
Only push the
manifest.json
*You may come across errors if u push the others -
Run the command
npx expo export:web
-
Run the command
npm run deploy
- Commit changes
- Push changes
- Run the command
npm run deploy
- Wait minimum of 1 minutes for changes to take affect