| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
There was a problem hiding this comment.
This PR updates the release automation to automatically rebuild distribution artifacts for mergeback and backport PRs, eliminating the manual “remove/re-add Rebuild label” step while still keeping rebuild changes isolated in dedicated commits.
Changes:
| File | Description |
|---|---|
| .github/workflows/post-release-mergeback.yml | Sets up Node 24 and npm caching for the mergeback workflow. |
| .github/update-release-branch.py | Adds “Rebuild” commit automation for backport branches and updates revert logic. |
| .github/actions/release-initialise/action.yml | Bumps Node to 24 and enables npm cache for release automation jobs. |
| .github/actions/prepare-mergeback-branch/action.yml | Automatically rebuilds artifacts and conditionally creates a “Rebuild” commit before pushing the mergeback branch. |
Sorry, something went wrong.
There was a problem hiding this comment.
This looks OK and this isn't blocking, but I'd really like to get the remaining Python scripts / parts of the workflows converted to TypeScript 😅
Sorry, something went wrong.
| - name: Rebuild the Action | ||
| shell: bash | ||
| run: | | ||
| set -exu | ||
| npm ci | ||
| npm run build | ||
|
|
||
| - name: Check for rebuild changes | ||
| id: rebuild_changes | ||
| shell: bash | ||
| run: | | ||
| set -exu | ||
| git add --all | ||
| if git diff --cached --quiet; then | ||
| echo "has_changes=false" >> "${GITHUB_OUTPUT}" | ||
| else | ||
| echo "has_changes=true" >> "${GITHUB_OUTPUT}" | ||
| fi | ||
|
|
||
| - name: Commit rebuild | ||
| if: steps.rebuild_changes.outputs.has_changes == 'true' | ||
| shell: bash | ||
| run: | | ||
| set -exu | ||
| git commit -m "Rebuild" |
There was a problem hiding this comment.
Could we make this a reusable action?
Sorry, something went wrong.
There was a problem hiding this comment.
I considered that, but in this case we're only interested in running npm run build — running the linter, sync_back and sync is pointless.
Sorry, something went wrong.
I'd also prefer that they were written in TypeScript, but this change isn't making them much more complex, and I don't have capacity to port them at the moment. |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Automatically rebuild the backport and mergeback PRs so maintainers don't have to do the "remove and readd "Rebuild" label, wait for rebuild, mark PR as ready for review" dance twice on each release.
Since we need to revert the modifications to the build artifacts in the backport PRs, we continue to produce a separate "Rebuild" commit to keep code changes isolated.