Prepare examples to Extension.js v3 #7
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: | |
| ci: | |
| runs-on: ubuntu-latest | |
| defaults: | |
| run: | |
| shell: bash | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup pnpm | |
| id: setup-pnpm | |
| uses: pnpm/action-setup@v4 | |
| with: | |
| version: 10.10.0 | |
| run_install: false | |
| standalone: true | |
| - name: Setup Node | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20 | |
| cache: 'pnpm' | |
| - name: Enable corepack and ensure pnpm is executable | |
| run: | | |
| corepack enable | |
| which pnpm | |
| chmod +x $(which pnpm) || true | |
| - name: Verify pnpm | |
| run: pnpm --version | |
| - name: Install dependencies | |
| run: pnpm install -w | |
| - name: Install example dependencies | |
| run: pnpm -r --filter './examples/*' install --no-frozen-lockfile | |
| - name: Build all examples | |
| run: pnpm -r --filter './examples/*' run build | |
| env: | |
| EXTENSION_SKIP_INSTALL: '1' | |
| CI: '1' |