Commit 1347a5a
authored
ci: automate openapi artifact regeneration on release PRs (#967)
This pull request updates the release and CI automation to better manage
versioning and OpenAPI artifact generation, especially during release
PRs. The changes ensure that frontend and OpenAPI artifacts are kept in
sync with backend releases and automates regeneration and committing of
these artifacts when needed.
**Release automation enhancements:**
*
[`.github/release-please-config.json`](diffhunk://#diff-b4c6ab25197e992b430b71d65743b6459f06f248f7c6b3364f1942e40d9f0039L7-R19):
Configured `release-please` to update additional files on release,
including `frontend/package.json` (version), `public/openapi.yaml`, and
generated frontend API client files, ensuring all relevant artifacts are
versioned together.
**CI workflow improvements:**
*
[`.github/workflows/ci.yml`](diffhunk://#diff-b803fcb7f17ed9235f1e5cb1fcd2f5d3b2838429d4368ae4c57ce4436577f03fR52-R53):
Updated the `actions/checkout` step to use a custom token if available,
improving permissions for CI/CD workflows.
*
[`.github/workflows/ci.yml`](diffhunk://#diff-b803fcb7f17ed9235f1e5cb1fcd2f5d3b2838429d4368ae4c57ce4436577f03fR76-R94):
Enhanced the OpenAPI verification step to allow release PRs to proceed
even if OpenAPI artifacts are out of date, and added a new step that
automatically regenerates and commits OpenAPI spec and client files
during release PRs when needed. This reduces manual intervention and
ensures that generated artifacts are always up to date in release
branches.1 parent 4f1c416 commit 1347a5a
2 files changed
Lines changed: 33 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
8 | 20 | | |
9 | 21 | | |
10 | 22 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
| 52 | + | |
| 53 | + | |
52 | 54 | | |
53 | 55 | | |
54 | 56 | | |
| |||
71 | 73 | | |
72 | 74 | | |
73 | 75 | | |
| 76 | + | |
74 | 77 | | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
75 | 95 | | |
76 | 96 | | |
77 | 97 | | |
| |||
0 commit comments