release: v0.2.2 — IDP, observability, tiered architecture, org cycle #195
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Automation | |
| on: | |
| pull_request: | |
| types: [opened, synchronize, reopened, labeled, unlabeled] | |
| push: | |
| branches: [main] | |
| permissions: | |
| contents: write | |
| pull-requests: write | |
| jobs: | |
| label: | |
| name: Auto Label | |
| if: github.event_name == 'pull_request' | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/labeler@v5 | |
| with: | |
| repo-token: ${{ secrets.GITHUB_TOKEN }} | |
| # On PRs: just verify a changeset exists | |
| changeset-check: | |
| name: Changeset Check | |
| if: github.event_name == 'pull_request' | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Check for changeset | |
| run: | | |
| # Get changed files in this PR | |
| CHANGED=$(git diff --name-only origin/${{ github.base_ref }}...HEAD) | |
| # If only .md or .github files changed, changeset is optional | |
| NON_DOCS=$(echo "$CHANGED" | grep -v '\.md$' | grep -v '\.github/' | grep -v '\.changeset/' || true) | |
| if [ -z "$NON_DOCS" ]; then | |
| echo "Only docs/CI changes — changeset not required" | |
| exit 0 | |
| fi | |
| # Check if a changeset file exists | |
| CHANGESETS=$(ls .changeset/*.md 2>/dev/null | grep -v README || true) | |
| if [ -z "$CHANGESETS" ]; then | |
| echo "::warning::No changeset found. Add one with: npx changeset add" | |
| exit 0 | |
| fi | |
| echo "Changeset found: $CHANGESETS" | |
| # On push to main: create version PR | |
| changeset-release: | |
| name: Version Packages | |
| if: github.event_name == 'push' && github.ref == 'refs/heads/main' | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: '22' | |
| cache: 'npm' | |
| - run: npm ci | |
| - name: Create version PR | |
| uses: changesets/action@v1 | |
| with: | |
| title: 'chore: version packages' | |
| commit: 'chore: version packages' | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |