* fix: prettify generated files on the fly - Add prettier --write to generate:schemas script to format generated files immediately after generation - Remove redundant prettier:fix from CI schema verification step (now that generation includes formatting) This fixes the release CI failure where generated files weren't formatted. Previously, PR CI masked this by running prettier:fix before the final prettier check, while release CI ran the check directly on freshly-generated (unformatted) files. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> * format --------- Co-authored-by: Claude <noreply@anthropic.com>
37 lines
850 B
YAML
37 lines
850 B
YAML
name: CI
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
pull_request:
|
|
branches: [main]
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Verify no private URLs in package-lock.json
|
|
run: '! grep -E "\"resolved\": \"https?://" package-lock.json | grep -v registry.npmjs.org'
|
|
|
|
- uses: oven-sh/setup-bun@v2
|
|
with:
|
|
bun-version: latest
|
|
|
|
- uses: actions/setup-node@v4
|
|
with:
|
|
node-version: "20"
|
|
|
|
- run: npm install
|
|
|
|
- run: npm run build:all
|
|
|
|
- name: Verify generated schemas are up-to-date
|
|
run: |
|
|
npm run generate:schemas
|
|
git diff --exit-code src/generated/ || (echo "Generated schemas are out of date. Run 'npm run generate:schemas' and commit." && exit 1)
|
|
|
|
- run: npm test
|
|
|
|
- run: npm run prettier
|