Skip to content

Conversation

@swashbuck
Copy link
Contributor

@swashbuck swashbuck commented Jan 26, 2026

Fixes #823

Fix

  • Adds semantic-release-replace-plugin to automatically replace @@CURRENT_VERSION and @@RELEASE_VERSION placeholders in migration scripts during the release process
  • Updates @semantic-release/git assets to include migrations/*.js so replaced files are committed
  • Bump version of semantic-release
  • Replaces unreplaced @@CURRENT_VERSION value in _ariaLevel migration scripts. @@CURRENT_VERSION and @@RELEASE_VERSION placeholders can be used moving forward.

‼️To-do (after merging)

Manually delete release 6.69.0 and tag 6.69.0. See #824 (comment)

Context

Migration scripts can use version placeholders (@@CURRENT_VERSION, @@RELEASE_VERSION) which should be replaced during release. This was proposed in adapt-migrations issue #48, but the core plugin was never configured to perform the replacement.

The adapt-migrations package (v1.4.0+) has a runtime fallback for this, but the proper solution is to have semantic-release replace the placeholders during the release process, so the committed migration files have actual version numbers.

How it works

During release, the plugin replaces:

  • @@CURRENT_VERSION${lastRelease.version} (previous release version)
  • @@RELEASE_VERSION${nextRelease.version} (version being released)

…olders (fixes #823)

Adds semantic-release-replace-plugin to automatically replace @@CURRENT_VERSION
and @@RELEASE_VERSION placeholders in migration scripts during release.
@swashbuck swashbuck moved this from Assigned to Needs Reviewing in adapt_framework: The TODO Board Jan 26, 2026
@swashbuck swashbuck changed the title New: Add semantic-release-replace-plugin for migration version placeholders (fixes #823) Fix: Add semantic-release-replace-plugin for migration version placeholders (fixes #823) Jan 26, 2026
Copy link
Contributor

Choose a reason for hiding this comment

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

👀

@swashbuck swashbuck requested a review from joe-replin January 28, 2026 17:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Status: Needs Reviewing

Development

Successfully merging this pull request may close these issues.

Placeholder values not being replaced in migration scripts

4 participants