Repository navigation
Conversation
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.
Summary
Adds end-to-end support for pre-release channels (beta / staging) to the release automation script and GitHub Actions workflow.
This enables validation of builds cut directly from
developacross the full delivery chain (extension.eext, standalone.mcpbbundle, GitHub pre-release, and npm@betadist-tag) before merging intomasterfor production release.Motivation
Previously, package releases were only triggered on push to
master. Staging new features or testing MCP tool changes in live EasyEDA Pro and AI client environments required either local links or immediate production publishes.This change introduces an industry-standard dual-channel lifecycle:
developbranch: Generates SemVer pre-releases (X.Y.Z-beta.N), publishes to npm under@beta, and flags releases on GitHub asPre-release.masterbranch: Automatically graduates pre-releases to official stable versions (X.Y.Z), publishes to npm under@latest, and pushes to the official Model Context Protocol Registry.Key Changes
1. Version Automation Script (
scripts/bump-version.mjs)parseSemverandincSemverto parse, validate, and bump pre-release tags (1.5.0-beta.0,1.5.0-beta.1).getNextPrereleaseVersion): Queries existing Git tags to deterministically compute the next sequential beta number (-beta.0➔-beta.1➔-beta.2), preventing npm registry version collision.developintomasterwith an active beta version, the script automatically strips the-beta.Xsuffix, graduates to the target stable SemVer, and aggregates commit history since the previous stable release into the changelog.--channel <auto|stable|beta>argument and exportedchannelandis_prereleaseflags to$GITHUB_OUTPUT.2. Release Action Workflow (
.github/workflows/release.yml)developare triggered on demand viaworkflow_dispatchto avoid flooding npm and GitHub with redundant intermediate builds.npm publish --tag beta(keeping@latestclean for production users).npm publish --tag latest.gh release createwith--prereleasefor beta builds.mcp-publisherexecution to stable production releases only (is_prerelease != 'true').HEAD:${{ github.ref_name }}. Automatic back-sync todeveloponly executes on stable releases frommaster.