Skip to content

chore: automate js assets updates - #8897

Merged
soyuka merged 1 commit into
api-platform:5.0from
soyuka:chore/update-js-workflow
Nov 27, 2026
Merged

soyuka merged 1 commit into
api-platform:5.0from
soyuka:chore/update-js-workflow

Conversation

@soyuka

@soyuka soyuka commented Nov 27, 2026

Copy link
Copy Markdown
Member
Q A
Branch? 5.0
Tickets
License MIT
Doc PR

package-lock.json is a leftover of tools/update-js.sh (the script deletes it before installing), but GitHub scans it: 54 open alerts and Dependabot security updates failing on /package.json not found. Removed, and the script now deletes it at the end.

We always forget to run update-js.sh, so a monthly workflow (also manual) runs it and opens or refreshes a PR on 5.0 when swagger-ui, redoc or open-sans changed. It uses the API Platform app token so CI runs on that PR. Schedules only run from the default branch, so it starts after the next merge-up, and BASE_BRANCH needs a bump with each minor.

Dependabot github-actions updates now target 5.0: actions are pinned by SHA, these PRs are what keeps the pins current, and they used to land on main only.

Drop the orphan package-lock.json that made Dependabot security
updates fail. A monthly workflow runs tools/update-js.sh and opens a
pull request on 5.0, and Dependabot github-actions updates now target
5.0 so they reach main through the merge-up.
@soyuka
soyuka merged commit 8cd4b01 into api-platform:5.0 Nov 27, 2026
106 of 115 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant