Files
react-telegram/.github/workflows/badges.yml
Kyle Fang f83027e79d feat: add comprehensive CI/CD pipeline with GitHub Actions
- 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>
2025-07-01 10:10:22 +08:00

32 lines
931 B
YAML

name: Update Badges
on:
workflow_run:
workflows: ["CI", "Publish"]
types:
- completed
push:
branches:
- main
jobs:
update-badges:
name: Update README Badges
runs-on: ubuntu-latest
if: github.event.workflow_run.conclusion == 'success' || github.event_name == 'push'
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Create badges directory
run: mkdir -p .github/badges
- name: Generate CI badge
run: |
echo '{"schemaVersion": 1, "label": "CI", "message": "passing", "color": "success"}' > .github/badges/ci.json
- name: Generate version badge
run: |
VERSION=$(node -p "require('./packages/core/package.json').version")
echo "{\"schemaVersion\": 1, \"label\": \"version\", \"message\": \"v$VERSION\", \"color\": \"blue\"}" > .github/badges/version.json