Skip to content

fix: externalize react #44

fix: externalize react

fix: externalize react #44

Workflow file for this run

name: Deploy to github.io
on:
push:
branches: [main]
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 22
registry-url: https://registry.npmjs.org/
- name: Set React environment using current directory
run: echo "PUBLIC_URL=/$(basename $(pwd))" >> $GITHUB_ENV
- name: npm install, lint
run: |
git submodule update --init --recursive
export GENERATE_SOURCEMAP=false
npm install
npm run lint:fix
npm run build
env:
REACT_APP_BASE_URL: ${{ secrets.BACKEND_URL }}
- name: Deploy to github.io
uses: JamesIves/github-pages-deploy-action@v4
with:
branch: gh-pages
folder: build