Sync your AsyncAPI Specification
Automatically sync your AsyncAPI spec changes to keep SDKs and docs up to date
Keeping your AsyncAPI specifications in sync with your codebase is crucial for maintaining accurate SDKs and documentation. Fern provides several automation options to streamline this process.
GitHub Actions
Use Fern’s GitHub Action to automatically update SDKs and docs when your AsyncAPI spec changes:
.github/workflows/fern.yml
Webhook integration
Set up webhooks to trigger SDK generation when your AsyncAPI spec is updated:
generators.yml
Auto-sync from source
Configure Fern to automatically pull your AsyncAPI specification from various sources:
From URL
generators.yml
From Git repository
generators.yml
CI/CD integration
CircleCI
.circleci/config.yml
GitLab CI
.gitlab-ci.yml
Scheduled updates
Set up scheduled updates to ensure your SDKs stay current:
.github/workflows/scheduled-update.yml
Monitoring changes
Track changes to your AsyncAPI specification:
generators.yml
This ensures that any breaking changes to your AsyncAPI specification are detected and the appropriate team members are notified before the changes are propagated to your SDKs and documentation.