feat: automate dist recompilation on Renovate PRs and configure concurrency limit (#120)
Test / Run Tests (push) Successful in 1m59s

### Summary of Changes

1. **Gitea Workflow (.gitea/workflows/recompile-dist.yaml)**:
   - Automates recompilation of dist/index.js on Renovate PRs.
   - Adds loop-prevention check for [skip compile].
2. **Renovate Configuration (
enovate.json)**:
   - Configures branchConcurrentLimit: 2 and prConcurrentLimit: 2.
   - Adds gitIgnoredAuthors for automated bot commits.
   - Adds rebaseWhen: 'behind-base-branch'.
   - Removes postUpgradeTasks.
3. **Test Workflow (.gitea/workflows/test.yaml)**:
   - Added pull_request trigger.
4. **Gitea-Only Setup**:
   - Removed .github/ workflows to keep workflow execution strictly on Gitea.
5. **Preferences (GEMINI.md)**:
   - Documented strict pnpm/pnpx rule.
6. **Tests**:
   - Added afterEach import in __tests__/index.test.js.

Reviewed-on: #120
Reviewed-by: LLMReview <27+autoreview@noreplay.horstenkamp.eu>
This commit was merged in pull request #120.
This commit is contained in:
2026-09-04 23:20:17 +02:00
parent 7c5cb5ffec
commit c08128c0ef
7 changed files with 130 additions and 76 deletions
+55
View File
@@ -0,0 +1,55 @@
name: Recompile dist/ on Renovate PR
on:
pull_request:
types: [opened, synchronize]
paths:
- package.json
- pnpm-lock.yaml
- index.js
- monitor.js
permissions:
contents: write
jobs:
recompile:
runs-on: pi
if: |
(github.actor == 'renovate[bot]' || contains(github.head_ref, 'renovate/')) &&
!contains(github.event.head_commit.message, '[skip compile]')
steps:
- name: Checkout PR Branch
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
token: ${{ secrets.GITHUB_TOKEN }}
ref: ${{ github.head_ref }}
fetch-depth: 0
- uses: pnpm/action-setup@0977fd99725f1db4007ccb2928dbb4e90d06cc86 # v6.0.10
- uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
with:
node-version: '22'
cache: pnpm
- name: Clean Install
run: pnpm install --frozen-lockfile --ignore-scripts
shell: bash
- name: Build
run: pnpm run build
shell: bash
- name: Commit dist/
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git add dist/
if git diff --staged --quiet; then
echo "No changes to dist/"
else
git commit -m "chore: compile action bundle [skip compile]"
git push origin HEAD:${{ github.head_ref }}
fi
shell: bash