chore: prepare product deployment #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: | |
| pull_request: | |
| push: | |
| branches: | |
| - main | |
| permissions: | |
| contents: read | |
| jobs: | |
| build-test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: '24' | |
| cache: npm | |
| - name: Install | |
| run: npm ci | |
| - name: Build | |
| run: npm run build | |
| - name: Product artifact check | |
| run: npm run check:product-artifacts | |
| - name: Test | |
| run: npm test | |
| - name: Root package guard | |
| run: | | |
| if npm pack --dry-run --json >/tmp/codegraph-pack.json 2>/tmp/codegraph-pack.err; then | |
| echo "Root npm pack unexpectedly succeeded" >&2 | |
| cat /tmp/codegraph-pack.json >&2 | |
| exit 1 | |
| fi | |
| grep -q "Refusing to pack or publish the repository root package" /tmp/codegraph-pack.err |