Changes for wwrando-dev-tanjo3 build #4539
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CI | |
| on: | |
| pull_request: | |
| push: | |
| branches: | |
| - 'main' | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout commit | |
| uses: actions/checkout@v4 | |
| - name: Install Node | |
| uses: actions/setup-node@v4.0.3 | |
| with: | |
| node-version: '20.x' | |
| - name: Install npm packages | |
| run: | | |
| set -e | |
| npm install | |
| - name: Build UI | |
| run: | | |
| set -e | |
| npm run build:production | |
| - name: Run tests | |
| run: | | |
| set -e | |
| npm test | |
| - name: Run eslint | |
| run: | | |
| set -e | |
| npm run lint | |
| - name: Generate docs | |
| run: | | |
| set -e | |
| npm run docs | |
| mv ./docs ./dist/ | |
| - name: Deploy | |
| if: github.repository == 'wooferzfg/tww-rando-tracker' && github.ref == 'refs/heads/main' | |
| uses: peaceiris/actions-gh-pages@v4.0.0 | |
| with: | |
| personal_token: ${{ secrets.GH_PAGES_DEPLOY }} | |
| force_orphan: true | |
| publish_branch: gh-pages-main | |
| publish_dir: ./dist |