Skip to content

Make using latest release easier#1421

Merged
zetter-rpf merged 3 commits intomainfrom
make-releases-easier
Apr 10, 2026
Merged

Make using latest release easier#1421
zetter-rpf merged 3 commits intomainfrom
make-releases-easier

Conversation

@zetter-rpf
Copy link
Copy Markdown
Contributor

Related to: https://github.com/RaspberryPiFoundation/digital-editor-issues/issues/1245

This updates a 'latest_version' file in the bucket when editor ui is released. We'll use this file when editor-standalone is deployed to make sure we're on the latest version.

See commits for more.

There is a lot of output when syncing files, reduce it by setting progress-frequency
@zetter-rpf zetter-rpf temporarily deployed to previews/1421/merge April 8, 2026 13:46 — with GitHub Actions Inactive
@zetter-rpf zetter-rpf marked this pull request as ready for review April 8, 2026 15:20
Copilot AI review requested due to automatic review settings April 8, 2026 15:20
@zetter-rpf zetter-rpf force-pushed the make-releases-easier branch from 416a63f to 316d493 Compare April 8, 2026 15:21
@zetter-rpf zetter-rpf temporarily deployed to previews/1421/merge April 8, 2026 15:21 — with GitHub Actions Inactive
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the deployment workflow to publish a latest_version marker file alongside editor UI releases, enabling downstream deployments (e.g. editor-standalone) to discover and use the most recent released build.

Changes:

  • Upload a latest_version file to the S3 bucket root during tag-based releases.
  • Purge Cloudflare cache for the latest_version URL.
  • Make the automated “bump version” PRs open as drafts.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 4 comments.

File Description
.github/workflows/deploy.yml Adds S3 upload of latest_version on tag releases and purges its Cloudflare cache entry.
.github/workflows/bump-version.yml Changes the version-bump workflow to create draft PRs.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

We can use this value in the standalone release script to always use the most recently released editor-ui

The biggest risk I could think of with this is that an tag added to an old commit (or even a new, unreleased commit) could cause the latest-version to be updated. To prevent this, the latest_release file is only updated if the tag matches the contents in the package.json file.
It currently only runs tests if you make it as draft and then open it again.

If we mark it as draft there is one less step.
Copy link
Copy Markdown
Contributor

@adrian-rpf adrian-rpf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGMT

@zetter-rpf zetter-rpf merged commit 5fdc9a0 into main Apr 10, 2026
7 checks passed
@zetter-rpf zetter-rpf deleted the make-releases-easier branch April 10, 2026 08:05
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.

3 participants