Harden QA reporting, thresholds, and multi-target flows #34
Workflow file for this run
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: Version Bump | |
| on: | |
| pull_request: | |
| push: | |
| branches: | |
| - main | |
| paths-ignore: | |
| - package.json | |
| - package-lock.json | |
| jobs: | |
| version-policy: | |
| if: github.event_name == 'pull_request' | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Version policy notice | |
| run: | | |
| echo "Version bump is CI-managed on merge to main." | |
| echo "Per-PR package.json bumps are not required." | |
| version-bump: | |
| if: github.event_name == 'push' && github.ref == 'refs/heads/main' && github.actor != 'github-actions[bot]' | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Setup Node | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 24 | |
| - name: Bump patch version | |
| run: npm version patch --no-git-tag-version | |
| - name: Commit and push version bump | |
| run: | | |
| if git diff --quiet -- package.json package-lock.json; then | |
| echo "No version file changes detected; skipping commit." | |
| exit 0 | |
| fi | |
| git config user.name "github-actions[bot]" | |
| git config user.email "41898282+github-actions[bot]@users.noreply.github.com" | |
| git add package.json package-lock.json | |
| git commit -m "chore: bump version [skip ci]" | |
| git push |