Implement local Explain Agent with dynamic multi-provider LLM support using Vercel AI SDK v5 #37
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 | |
| on: | |
| pull_request: | |
| branches: [main, master] | |
| push: | |
| branches: [main, master] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| strategy: | |
| matrix: | |
| browser: [chrome, firefox] | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Setup pnpm | |
| uses: pnpm/action-setup@v4 | |
| with: | |
| version: 9 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '20' | |
| cache: 'pnpm' | |
| - name: Install dependencies | |
| run: pnpm install | |
| - name: Build for ${{ matrix.browser }} | |
| run: | | |
| if [ "${{ matrix.browser }}" = "firefox" ]; then | |
| pnpm run build:firefox | |
| else | |
| pnpm run build | |
| fi | |
| - name: Create zip for ${{ matrix.browser }} | |
| run: | | |
| if [ "${{ matrix.browser }}" = "firefox" ]; then | |
| pnpm run zip:firefox | |
| else | |
| pnpm run zip | |
| fi | |
| - name: Upload build artifacts | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: extension-${{ matrix.browser }} | |
| path: .output/*.zip | |
| retention-days: 7 |