mirror of
https://github.com/lockin-bot/react-telegram.git
synced 2026-01-12 22:27:38 +08:00
- Add CI workflow for testing, type checking, and building - Add publish workflow for npm releases - Add automated release workflow with changesets - Add PR checks for changesets and formatting - Add security scanning workflow - Add documentation validation workflow - Configure changesets for version management - Add Prettier for code formatting - Add unit tests for core and adapter packages - Add contributing guidelines and release documentation - Configure Dependabot for dependency updates - Update README with CI badges This establishes a complete CI/CD pipeline for automated testing, versioning, and publishing of the React Telegram packages. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
60 lines
1.5 KiB
YAML
60 lines
1.5 KiB
YAML
name: Documentation
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
paths:
|
|
- '**.md'
|
|
- 'packages/*/src/**'
|
|
- '.github/workflows/docs.yml'
|
|
|
|
jobs:
|
|
check-docs:
|
|
name: Check Documentation
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Check README files exist
|
|
run: |
|
|
for package in packages/*/; do
|
|
if [ -d "$package" ] && [ ! -f "$package/README.md" ]; then
|
|
echo "❌ Missing README.md in $package"
|
|
exit 1
|
|
fi
|
|
done
|
|
echo "✅ All packages have README files"
|
|
|
|
- name: Check for broken links
|
|
uses: lycheeverse/lychee-action@v1
|
|
with:
|
|
args: >
|
|
--verbose
|
|
--no-progress
|
|
--accept 200,204,206,301,302
|
|
--exclude-all-private
|
|
--exclude "https://github.com/your-username/*"
|
|
'./**/*.md'
|
|
fail: false
|
|
|
|
- name: Spell check
|
|
uses: streetsidesoftware/cspell-action@v6
|
|
with:
|
|
files: '**/*.{md,ts,tsx}'
|
|
config: |
|
|
{
|
|
"words": [
|
|
"mtcute",
|
|
"telegram",
|
|
"bun",
|
|
"changeset",
|
|
"changesets",
|
|
"monorepo",
|
|
"reconciler",
|
|
"autodelete",
|
|
"emoji",
|
|
"prepublish"
|
|
]
|
|
} |