Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ jobs:
fail-fast: false
matrix:
node-version: [20, 22, 24]
env:
LOGFOX_CALLSPEC_URL: ${{ vars.LOGFOX_CALLSPEC_URL || format('{0}/scripts/ci/callspec.json', github.workspace) }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v6
Expand All @@ -31,4 +33,6 @@ jobs:
echo "@logfoxai:registry=https://npm.pkg.github.com/" > .npmrc
echo "//npm.pkg.github.com/:_authToken=${{ secrets.GITHUB_TOKEN }}" >> .npmrc
- run: npm ci
- name: Generate API client
run: npm run generate:api
- run: npm run build
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
node_modules/
dist/
src/generated/
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,16 @@ logfox config:set appUrl http://localhost:4000
logfox login
```

Regenerate the typed RPC client from the committed CI snapshot (`scripts/ci/callspec.json`) or a live api-service mount:

```bash
npm run generate:api
LOGFOX_CALLSPEC_URL=https://api.dev.logfox.ai/v1 npm run generate:api
LOGFOX_CALLSPEC_URL=../server/callspec.json npm run generate:api # sibling server checkout
```

`src/generated/api.ts` is gitignored — `prebuild` runs codegen before `tsc`.

## Commits & releases

[AutoRel](https://github.com/mhweiner/autorel). Conventional commits — see the [commit format](https://github.com/mhweiner/autorel/blob/main/docs/commit-format.md).
Loading
Loading