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>
32 lines
931 B
YAML
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 |