Skip to content

ci(release): embed semantic-release version in Docker build#128

Merged
steilerDev merged 1 commit into
betafrom
ci/version-in-docker-build
Feb 19, 2026
Merged

ci(release): embed semantic-release version in Docker build#128
steilerDev merged 1 commit into
betafrom
ci/version-in-docker-build

Conversation

@steilerDev
Copy link
Copy Markdown
Owner

Summary

  • Added @semantic-release/git (v10.0.1) to the semantic-release plugin chain
  • The plugin commits the updated package.json and package-lock.json before the git tag is created, so the Docker build picks up the correct version instead of the static 0.1.0 placeholder
  • Plugin order: npm (updates version) → git (commits files with [skip ci]) → github (creates release)

Problem

The sidebar shows Cornerstone v0.1.0 because:

  1. @semantic-release/npm updates package.json in the working directory
  2. But without @semantic-release/git, nothing commits that change
  3. The git tag points to the commit before the version bump
  4. The Docker job checks out the tag and gets the old 0.1.0

Test plan

  • Verify CI passes (lint, typecheck, build, tests)
  • After merge to beta, confirm the release workflow produces a chore(release): X.Y.Z-beta.N [skip ci] commit
  • Verify the Docker image built from the tag shows the correct version in the sidebar footer

🤖 Generated with Claude Code

…tagging

The sidebar shows "v0.1.0" because the Docker build checks out the git tag,
but @semantic-release/npm updates package.json without committing it. Adding
@semantic-release/git commits the updated package.json and package-lock.json
before the tag is created, so the Docker image gets the correct version.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@steilerDev steilerDev merged commit aac4632 into beta Feb 19, 2026
4 checks passed
@github-actions
Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 1.8.0-beta.23 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

@steilerDev steilerDev deleted the ci/version-in-docker-build branch February 19, 2026 20:39
@github-actions
Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 1.8.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants