Add troubleshooting instructions for ERR_REQUIRE_ESM (#43) #44
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: CLI Build | |
| on: | |
| push: | |
| branches: [main] | |
| paths: ["cli/**"] | |
| pull_request: | |
| paths: ["cli/**"] | |
| 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: "22" | |
| - name: Setup Bun | |
| uses: oven-sh/setup-bun@v2 | |
| with: | |
| bun-version: latest | |
| - name: Install dependencies | |
| working-directory: ./cli | |
| run: bun install | |
| - name: Type check | |
| working-directory: ./cli | |
| run: bun run typecheck | |
| - name: Build CLI | |
| working-directory: ./cli | |
| run: bun run build | |
| - name: Check build artifacts | |
| working-directory: ./cli | |
| run: | | |
| ls -la dist/ | |
| test -f dist/index.js |