Skip to content

build: use placeholder version for semantic-release#204

Open
arbrandes wants to merge 2 commits intoopenedx:mainfrom
arbrandes:placeholder-version
Open

build: use placeholder version for semantic-release#204
arbrandes wants to merge 2 commits intoopenedx:mainfrom
arbrandes:placeholder-version

Conversation

@arbrandes
Copy link
Contributor

Description

Now that semantic-release manages versioning, the version in package.json is no longer manually maintained. This sets it to 0.0.0-dev to make that explicit.

The CLI's version display is also updated to detect the placeholder: when it matches 0.0.0-*, the short git hash is appended in parentheses (e.g., 0.0.0-dev (3a1b2c4)) so the exact checkout is identifiable. For published packages, the real version set by semantic-release is shown as before.

LLM usage notice

Built with assistance from Claude models (mostly Opus 4.6).

arbrandes and others added 2 commits March 25, 2026 18:36
semantic-release manages the version at publish time, so the version
in package.json is not manually maintained. Use 1.999.0 as a
placeholder that satisfies any ^1.X.Y range in workspace consumers
without a prerelease suffix (which would break semver matching).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
When the package.json version is the semantic-release placeholder
(0.0.0-dev), the CLI now appends the short git hash in parentheses so
the exact checkout is identifiable.  For published packages, the real
version set by semantic-release is shown as before.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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