✨ Add agent visibility: llms.txt, HTML fallback, and JSON-LD structur… #69
Workflow file for this run
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 & Preview | |
| on: | |
| push: | |
| branches-ignore: [ main ] | |
| pull_request: | |
| branches: [ main ] | |
| permissions: | |
| contents: write | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup Node | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '20' | |
| cache: 'npm' | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Type check | |
| run: npx tsc --noEmit | |
| - name: Validate skills | |
| run: npx skills add . -y && rm -rf .agents .claude/skills skills-lock.json | |
| - name: Build | |
| run: npm run build | |
| env: | |
| NODE_OPTIONS: "--max_old_space_size=4096" | |
| preview: | |
| runs-on: ubuntu-latest | |
| needs: build | |
| if: github.event_name == 'push' | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup Node | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '20' | |
| cache: 'npm' | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Build for preview | |
| run: | | |
| BRANCH_NAME=${GITHUB_REF_NAME} | |
| npm run build -- --base=/super-json/preview/${BRANCH_NAME}/ | |
| env: | |
| NODE_OPTIONS: "--max_old_space_size=4096" | |
| - name: Deploy preview to gh-pages | |
| uses: peaceiris/actions-gh-pages@v4 | |
| with: | |
| github_token: ${{ secrets.GITHUB_TOKEN }} | |
| publish_dir: ./dist | |
| destination_dir: preview/${{ github.ref_name }} | |
| keep_files: true |