mise-action/.github/workflows
jdx 3de8df851d
fix: auto-update dist folder in Renovate PRs via GitHub Actions (#306)
## Summary

Fixes the artifact update problem in Renovate PRs (like #294) by
replacing non-functional `postUpgradeTasks` configuration with a GitHub
Actions workflow.

## Problem

The previous configuration used `postUpgradeTasks` and `allowedCommands`
in `.github/renovate.json`, which only work with self-hosted Renovate.
Since this repo uses GitHub's hosted Renovate app, those settings were
being ignored, causing the `dist/` folder to not be updated
automatically.

## Solution

Created a new GitHub Actions workflow
(`.github/workflows/renovate-dist-update.yml`) that:
- Automatically triggers when Renovate opens a PR that modifies
`package.json`, `package-lock.json`, or `src/`
- Only runs for Renovate bot PRs
- Runs `npm run all` to rebuild the distribution
- Commits and pushes the updated `dist/` folder back to the PR branch

Also cleaned up `.github/renovate.json` by removing the non-functional
configuration.

## Testing

The workflow will automatically run on the next Renovate PR update. You
can test it immediately by:
1. Closing and reopening PR #294, or
2. Waiting for the next Renovate update cycle

🤖 Generated with [Claude Code](https://claude.com/claude-code)

<!-- CURSOR_SUMMARY -->
---

> [!NOTE]
> Replace Renovate post-upgrade tasks with a GitHub Actions workflow
that rebuilds and commits `dist/` on Renovate PRs.
> 
> - **CI / GitHub Actions**:
> - Add `/.github/workflows/renovate-dist-update.yml` to auto-rebuild
`dist/` on Renovate PRs.
> - Triggers on changes to `package.json`, `package-lock.json`,
`src/**`, `tsconfig.json`.
> - Runs only for `renovate[bot]`/`renovate-bot`; executes `npm ci` and
`npm run all`; commits updated `dist/` if changed.
> - **Renovate Config**:
> - Simplify `/.github/renovate.json` by removing `postUpgradeTasks` and
`allowedCommands`, keeping only `extends`.
> 
> <sup>Written by [Cursor
Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit
631581469e. This will update automatically
on new commits. Configure
[here](https://cursor.com/dashboard?tab=bugbot).</sup>
<!-- /CURSOR_SUMMARY -->

Co-authored-by: Claude <noreply@anthropic.com>
2025-10-31 09:27:59 -05:00
..
check-dist.yml chore(deps): update actions/checkout digest to 08eba0b (#248) 2025-08-22 10:10:27 +00:00
ci.yml chore(deps): update actions/checkout digest to 08eba0b (#248) 2025-08-22 10:10:27 +00:00
codeql-analysis.yml chore(deps): update github/codeql-action digest to 5d5cd55 (#302) 2025-10-31 08:06:06 +00:00
release-plz.yml chore(deps): update actions/checkout digest to 08eba0b (#248) 2025-08-22 10:10:27 +00:00
release.yml chore(deps): update actions/checkout digest to 08eba0b (#248) 2025-08-22 10:10:27 +00:00
renovate-dist-update.yml fix: auto-update dist folder in Renovate PRs via GitHub Actions (#306) 2025-10-31 09:27:59 -05:00
semantic-pr-lint.yml chore(deps): update amannn/action-semantic-pull-request digest to e32d7e6 (#249) 2025-08-22 05:07:42 -05:00
test-redacted-env.yml chore(deps): pin actions/checkout action to 08eba0b (#258) 2025-09-09 13:22:52 +00:00
test.yml fix: trim "v" prefix on update (#287) 2025-10-06 06:17:50 -05:00