Skip to content

chore: prepare product deployment #1

chore: prepare product deployment

chore: prepare product deployment #1

Workflow file for this run

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