Repository navigation
ci: bump templates to the released version on every release - #18728
Open
GermanJablo wants to merge 1 commit into
Open
GermanJablo wants to merge 1 commit into
GermanJablo wants to merge 1 commit into
Conversation
This was referenced Oct 14, 2026
GermanJablo
added this pull request to stack #18731
October 14, 2026 20:14
GermanJablo
force-pushed
the
ci/post-release-templates-dist-tag
branch
from
October 14, 2026 20:22
6be647f to
4bdbe2f
Compare
GermanJablo
force-pushed
the
ci/breaking-changes-section
branch
from
October 14, 2026 20:22
8d164dc to
a8ab247
Compare
GermanJablo
force-pushed
the
ci/post-release-templates-dist-tag
branch
from
October 14, 2026 20:31
4bdbe2f to
4233869
Compare
GermanJablo
removed this pull request from stack #18731
October 16, 2026 21:38
GermanJablo
force-pushed
the
ci/post-release-templates-dist-tag
branch
from
October 16, 2026 21:38
4233869 to
fd58a14
Compare
GermanJablo
force-pushed
the
ci/breaking-changes-section
branch
from
October 16, 2026 21:38
6cc8f74 to
a9d7d9a
Compare
GermanJablo
added this pull request to stack #18802
October 16, 2026 21:38
GermanJablo
force-pushed
the
ci/post-release-templates-dist-tag
branch
from
October 16, 2026 21:54
fd58a14 to
c25aaed
Compare
GermanJablo
force-pushed
the
ci/breaking-changes-section
branch
from
October 16, 2026 21:54
a9d7d9a to
8978ca8
Compare
GermanJablo
removed this pull request from stack #18802
October 19, 2026 16:06
GermanJablo
force-pushed
the
ci/post-release-templates-dist-tag
branch
from
October 19, 2026 16:07
c25aaed to
da16646
Compare
GermanJablo
marked this pull request as ready for review
October 19, 2026 16:14
denolfe
requested changes
Oct 19, 2026
Comment on lines
122
to
136
| - name: Create pull request | ||
| uses: peter-evans/create-pull-request@22a9089034f40e5a961c8808d113e2c98fb63676 # v7.0.11 | ||
| with: | ||
| token: ${{ secrets.GH_TOKEN_POST_RELEASE_TEMPLATES }} | ||
| labels: 'area: templates' | ||
| author: github-actions[bot] <github-actions[bot]@users.noreply.github.com> | ||
| commit-message: 'templates: bump templates for ${{ needs.wait_for_release.outputs.release_tag }}' | ||
| branch: ${{ steps.commit.outputs.branch }} | ||
| base: ${{ needs.wait_for_release.outputs.target_branch }} | ||
| assignees: ${{ github.actor }} | ||
| title: 'templates: bump for ${{ needs.wait_for_release.outputs.release_tag }}' | ||
| body: | | ||
| 🤖 Automated bump of templates for ${{ needs.wait_for_release.outputs.release_tag }} | ||
|
|
||
| Triggered by user: @${{ github.actor }} |
Member
There was a problem hiding this comment.
This should be updated to use our new payload creds that are used for the release-bump, reference that. Previously, it was using a token attached to a specific github user, which you can see from previous bump PRs.
Ideally, this PR somehow gets automerged as well.
Member
There was a problem hiding this comment.
We should bump this to 8 or 10 mins. Npmjs now does package scanning which can prolong the period between publish and resolving on the registry.
GermanJablo
force-pushed
the
ci/post-release-templates-dist-tag
branch
from
October 19, 2026 21:11
da16646 to
4afd451
Compare
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
Templates are no longer bumped after releases. It was turned off in #18643 because the workflow waits for npm
latest, which still points at v3, so every v4 beta run timed out.The six non-workspace templates on
mainalready have v4 code but still pin3.82.1. For example,with-postgresdepends on@payloadcms/transformer-sharp@3.82.1, which doesn't exist on npm, so cloning it directly fails to install.create-payload-app@betahides this because it rewrites the versions.The bump PRs were also opened with a personal token, and none of the last 12 got merged.
What
--payload-version), and the release trigger is back on. The wait is now 10 minutes, since npm scans packages before they resolve.open_prjob. The job that installs dependencies and generates the templates has no write access and hands over a patch, whichopen_prrefuses if it touches anything outsidetemplates/.Setup needed (repo settings)
templatesenvironment: allow tagsv*(release events run on the tag, which thebumpenvironment doesn't allow) and branchmain(manual dispatch). AddRELEASE_APP_CLIENT_IDandRELEASE_APP_PRIVATE_KEY.mainrequires an approval, the PR waits for one unless the App can bypass it.GH_TOKEN_POST_RELEASE_TEMPLATESsecret.Not covered
3.xno longer has the file (#16358). It needs a copy on3.x, as #16748 did forpost-release.update_templatesalso failed on every release fromv3.81.0tov3.84.0. The logs have expired, so the cause is unknown. Worth watching on the first run.Related: PYLD-4162