Skip to content

fix: configure semantic-release to auto-publish the 2.x branch#122

Merged
arbrandes merged 1 commit into
openedx:2.xfrom
arbrandes:arbrandes/2x-semantic-release
Jul 9, 2026
Merged

fix: configure semantic-release to auto-publish the 2.x branch#122
arbrandes merged 1 commit into
openedx:2.xfrom
arbrandes:arbrandes/2x-semantic-release

Conversation

@arbrandes

Copy link
Copy Markdown
Contributor

Description

Enables semantic-release to auto-publish the 2.x maintenance line. Previously the release config listed only main as a release branch, so a run triggered on 2.x would recognize the branch as unconfigured and skip publishing entirely.

This points the .releaserc branches entry and the release workflow trigger at 2.x. Because the branch is named N.x, semantic-release classifies it as a maintenance branch with range >=2.0.0 <3.0.0 and its own 2.x channel, so it will pick up from the last v2 tag (v2.0.11) and cut the next patch/minor without touching the latest dist-tag, which continues to come from the release branch.

Note that this branch publishes under the pre-rename package name @edx/frontend-plugin-notifications, which is correct: that is the package the v2.x line has always shipped to, and it is independent of the renamed @openedx/frontend-app-notifications used by the 3.x line. semantic-release computes versions purely from git tags, so the differing package name does not affect version calculation. Publishing relies on npm trusted publishing, which is configured per package, so the old package needs a trusted-publisher entry for this repo and workflow.

The change is committed as a fix: so merging produces an actual v2.0.12 release, validating the pipeline end to end.

LLM usage notice

Built with assistance from Claude.

Point the release config and workflow trigger at 2.x so the
maintenance line publishes on its own channel.

Co-Authored-By: Claude <noreply@anthropic.com>
@arbrandes arbrandes linked an issue Jul 9, 2026 that may be closed by this pull request
11 tasks
@arbrandes
arbrandes merged commit a7754f5 into openedx:2.x Jul 9, 2026
4 checks passed
@arbrandes
arbrandes deleted the arbrandes/2x-semantic-release branch July 9, 2026 18:19
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.

Publish frontend-app-notifications 3.0.0

1 participant