Fixup search when navigating within typeahead #3
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: Auto Build Bundle | |
| on: | |
| push: | |
| branches: | |
| - main | |
| paths: | |
| - 'scripts/**' | |
| permissions: | |
| contents: write | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| with: | |
| persist-credentials: true | |
| fetch-depth: 0 | |
| submodules: 'recursive' | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '18' | |
| cache: 'npm' | |
| cache-dependency-path: package-lock.json | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Ensure git submodules are initialized | |
| run: | | |
| # Sync and fetch submodules (recursive) so referenced repos are available for build | |
| git submodule sync --recursive || true | |
| git submodule update --init --recursive --remote | |
| - name: Build bundle | |
| run: npm run update | |
| - name: Commit and push bundle.js if changed | |
| run: | | |
| git config user.name "github-actions[bot]" | |
| git config user.email "github-actions[bot]@users.noreply.github.com" | |
| # Only commit if bundle.js changed | |
| if [[ -n "$(git status --porcelain bundle.js)" ]]; then | |
| git add bundle.js | |
| git add index.html | |
| git commit -m "chore: rebuild bundle.js (auto)" || echo "no commit" | |
| git push origin HEAD:refs/heads/main | |
| else | |
| echo "bundle.js unchanged" | |
| fi |