Skip to content

Commit 16e9fd5

Browse files
jdxclaude
andcommitted
feat: use autofix.ci to auto-update dist/ on all PRs
Switches from manual commit workflow to autofix.ci for automatically updating the dist/ folder when source files change. This has several advantages: 1. Works on ALL PRs, not just Renovate PRs 2. Commits made by autofix.ci (GitHub App) trigger CI workflows, unlike commits made with GITHUB_TOKEN which don't trigger workflows 3. Renovate recognizes autofix.ci commits via gitIgnoredAuthors and can still auto-rebase PRs Changes: - Renamed workflow from renovate-dist-update to auto-update-dist - Removed Renovate-only condition - now runs on all PRs - Replaced manual git commit/push with autofix.ci action - Updated renovate.json to ignore autofix.ci commits - Changed permissions from write to read-only Note: Requires installing the autofix.ci GitHub App: https://github.com/apps/autofix-ci 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
1 parent 993e7d0 commit 16e9fd5

3 files changed

Lines changed: 36 additions & 53 deletions

File tree

.github/renovate.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
33
"extends": ["github>jdx/renovate-config"],
4-
"gitIgnoredAuthors": ["github-actions[bot]@users.noreply.github.com"],
4+
"gitIgnoredAuthors": ["autofix.ci[bot] <autofix.ci[bot]@users.noreply.github.com>"],
55
"rebaseWhen": "conflicted"
66
}
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Auto-update Distribution
2+
3+
on:
4+
pull_request:
5+
paths:
6+
- 'package.json'
7+
- 'package-lock.json'
8+
- 'src/**'
9+
- 'tsconfig.json'
10+
11+
permissions:
12+
contents: read
13+
14+
jobs:
15+
update-dist:
16+
runs-on: ubuntu-latest
17+
18+
steps:
19+
- name: Checkout PR branch
20+
uses: actions/checkout@v4
21+
22+
- name: Setup Node.js
23+
uses: actions/setup-node@v4
24+
with:
25+
node-version: '24'
26+
cache: 'npm'
27+
28+
- name: Install dependencies
29+
run: npm ci
30+
31+
- name: Build and package
32+
run: npm run all
33+
34+
- name: autofix.ci
35+
uses: autofix-ci/action@ff86a557419858bb967097bfc916833f5647fa8c

.github/workflows/renovate-dist-update.yml

Lines changed: 0 additions & 52 deletions
This file was deleted.

0 commit comments

Comments
 (0)