Skip to content

fix(playground): keep blueprint editor version in sync with .editor-version#52

Merged
erseco merged 1 commit into
mainfrom
fix/playground-editor-version-sync
Jun 9, 2026
Merged

fix(playground): keep blueprint editor version in sync with .editor-version#52
erseco merged 1 commit into
mainfrom
fix/playground-editor-version-sync

Conversation

@erseco

@erseco erseco commented Jun 9, 2026

Copy link
Copy Markdown
Contributor

Problem

The playground booted with eXeLearning editor v4.0.0 even though the latest upstream release — and this repo's .editor-version — is v4.0.1.

Root cause: there are two sources of truth for the editor version, and only one was kept current.

  • .editor-version — bumped automatically every day by check-editor-releases.yml.
  • blueprint.json — a hardcoded editor download URL that the workflow never touched.

So .editor-version advanced to v4.0.1 while blueprint.json stayed pinned at v4.0.0, and the playground / PR-preview kept serving the old editor. Production plugin releases were unaffected (they bake the editor from .editor-version); only the playground demo drifted.

Fix

  • Catch-up: bump the editor URL in blueprint.json to v4.0.1 so it matches .editor-version.
  • Durable: check-editor-releases.yml now rewrites the blueprint's editor URL (via sed) whenever it bumps .editor-version, and commits both files together, so they can never drift apart again.

The sed only rewrites the editor asset reference (release=, releases/download/, exelearning-static-*.zip); the plugin source URL and content fixtures are left untouched. Verified against plain version tags and RC-suffixed tags (e.g. v4.0.0-rc3).

Verification

  • blueprint.json now resolves the same version as .editor-version (v4.0.1).
  • Dry-run of the workflow sed rewrites only the editor URL on a simulated bump.
  • blueprint.json is valid JSON and the workflow is valid YAML.

…ersion

The playground downloaded editor v4.0.0 while .editor-version had moved to
v4.0.1: check-editor-releases.yml only bumped the .editor-version marker and
never the hardcoded editor URL in blueprint.json, so the preview stayed pinned.

- Catch up blueprint.json to v4.0.1 (matches .editor-version).
- Rewrite the blueprint's editor URL on every bump so the two stay in sync.
@github-actions

github-actions Bot commented Jun 9, 2026

Copy link
Copy Markdown
Contributor

Test in WordPress Playground

Test the plugin with the code from this branch:

Preview in WordPress Playground

ℹ️ The eXeLearning editor is fetched from the shared release and unpacked into the plugin when the playground boots, so the first load may take a few extra seconds. ELP upload, shortcode, Gutenberg block and preview work normally.

@erseco erseco merged commit 65a7f99 into main Jun 9, 2026
4 checks passed
@erseco erseco deleted the fix/playground-editor-version-sync branch June 9, 2026 19:40
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