feat: Establish CI/CD pipelines and enhance installation documentation. #1
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: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '20' | |
| - name: Setup pnpm | |
| uses: pnpm/action-setup@v4 | |
| with: | |
| version: 9 | |
| - name: Install dependencies | |
| run: pnpm install | |
| - name: Type check | |
| run: pnpm exec tsc --noEmit | |
| - name: Build Chrome extension | |
| run: pnpm build | |
| - name: Build Firefox extension | |
| run: pnpm build:firefox | |
| - name: Upload Chrome build artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: chrome-extension | |
| path: .output/chrome-mv3/ | |
| - name: Upload Firefox build artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: firefox-extension | |
| path: .output/firefox-mv2/ |