diff --git a/.github/renovate.json b/.github/renovate.json index d5eec44..b26089f 100644 --- a/.github/renovate.json +++ b/.github/renovate.json @@ -1,6 +1,6 @@ { "$schema": "https://docs.renovatebot.com/renovate-schema.json", "extends": ["github>jdx/renovate-config"], - "gitIgnoredAuthors": ["github-actions[bot]@users.noreply.github.com"], + "gitIgnoredAuthors": ["autofix.ci[bot] "], "rebaseWhen": "conflicted" } diff --git a/.github/workflows/auto-update-dist.yml b/.github/workflows/auto-update-dist.yml new file mode 100644 index 0000000..1e9085b --- /dev/null +++ b/.github/workflows/auto-update-dist.yml @@ -0,0 +1,35 @@ +name: Auto-update Distribution + +on: + pull_request: + paths: + - 'package.json' + - 'package-lock.json' + - 'src/**' + - 'tsconfig.json' + +permissions: + contents: read + +jobs: + update-dist: + runs-on: ubuntu-latest + + steps: + - name: Checkout PR branch + uses: actions/checkout@v4 + + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version: '24' + cache: 'npm' + + - name: Install dependencies + run: npm ci + + - name: Build and package + run: npm run all + + - name: autofix.ci + uses: autofix-ci/action@ff86a557419858bb967097bfc916833f5647fa8c diff --git a/.github/workflows/renovate-dist-update.yml b/.github/workflows/renovate-dist-update.yml deleted file mode 100644 index 11cf021..0000000 --- a/.github/workflows/renovate-dist-update.yml +++ /dev/null @@ -1,52 +0,0 @@ -name: Update Distribution on Renovate PRs - -on: - pull_request: - paths: - - 'package.json' - - 'package-lock.json' - - 'src/**' - - 'tsconfig.json' - -permissions: - contents: write - pull-requests: write - -jobs: - update-dist: - # Only run for Renovate PRs - if: github.actor == 'renovate[bot]' || github.actor == 'renovate-bot' - runs-on: ubuntu-latest - - steps: - - name: Checkout PR branch - uses: actions/checkout@v4 - with: - ref: ${{ github.head_ref }} - token: ${{ secrets.GITHUB_TOKEN }} - - - name: Setup Node.js - uses: actions/setup-node@v4 - with: - node-version: '24' - cache: 'npm' - - - name: Install dependencies - run: npm ci - - - name: Build and package - run: npm run all - - - name: Check for changes - id: git-check - run: | - git diff --exit-code dist/ || echo "changed=true" >> $GITHUB_OUTPUT - - - name: Commit and push changes - if: steps.git-check.outputs.changed == 'true' - run: | - git config user.name "github-actions[bot]" - git config user.email "github-actions[bot]@users.noreply.github.com" - git add dist/ - git commit -m "chore: rebuild distribution" - git push