copurxia is building browser extension 🚀 #37
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: Build Extension | |
| run-name: ${{ github.actor }} is building browser extension 🚀 | |
| on: [push] | |
| jobs: | |
| build-extension: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check out repository code | |
| uses: actions/checkout@v4 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: "20" | |
| - name: Install pnpm | |
| run: npm install -g pnpm@10.27.0 | |
| - name: Install dependencies | |
| run: | | |
| cd extension | |
| pnpm install --frozen-lockfile | |
| - name: Build extension | |
| run: | | |
| cd extension | |
| pnpm run build | |
| - name: Typecheck extension | |
| run: | | |
| cd extension | |
| pnpm run typecheck | |
| - name: Archive extension artifacts | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: extension-build | |
| path: extension/build/chrome-mv3-prod | |
| retention-days: 30 |