Skip to content

ci: auto-sync frontend/package.json version from VERSION on master merge#74

Merged
kenahrens merged 2 commits intomasterfrom
fix/enforce-service-version-bump-ci
Apr 9, 2026
Merged

ci: auto-sync frontend/package.json version from VERSION on master merge#74
kenahrens merged 2 commits intomasterfrom
fix/enforce-service-version-bump-ci

Conversation

@kenahrens
Copy link
Copy Markdown
Member

Summary

  • Moves frontend/package.json and simulation-client/package.json version bumps from agents/developers to the CI pipeline, eliminating the recurring merge conflicts caused by multiple branches independently bumping the same version field from the same base.
  • Adds scripts/version.sh update-frontend and make update-frontend-version for syncing those files from the root VERSION file.
  • Extends the existing update-k8s-manifests CI job (which already had write access and ran only on master) to also sync the package.json versions in the same auto-commit.
  • Documents the full two-tier versioning model in AGENTS.md so future agents know exactly which files they should and should not touch.

What changed

File Change
scripts/version.sh New update-frontend command — syncs only frontend/ and simulation-client/ package.json from VERSION
Makefile New update-frontend-version target
.github/workflows/ci.yml update-k8s-manifests job now also runs make update-frontend-version and commits package.json changes
AGENTS.md Full versioning policy table; explicit prohibition on manual package.json bumps
frontend/package.json Synced to 1.4.1 (current VERSION)
simulation-client/package.json Synced to 1.4.1

Test plan

  • Verify the update-k8s-manifests job runs on the next push to master and produces a commit that updates frontend/package.json if it is out of sync with VERSION
  • Confirm no manual frontend/package.json bumps appear in subsequent agent PRs

Made with Cursor

Moves ownership of frontend/package.json and simulation-client/package.json
version bumps from agents/developers to the CI pipeline, eliminating merge
conflicts caused by multiple branches independently bumping the same field.

Changes:
- scripts/version.sh: add `update-frontend` command that syncs only the
  frontend and simulation-client package.json files from the root VERSION file
- Makefile: add `update-frontend-version` target
- ci.yml: extend the update-k8s-manifests job to also run
  `make update-frontend-version` and commit any package.json changes
- AGENTS.md: document the two-tier versioning model and explicitly forbid
  manual bumps of frontend/package.json and simulation-client/package.json
- frontend/package.json, simulation-client/package.json: synced to 1.4.1
  (current VERSION file value)

Made-with: Cursor
@kenahrens kenahrens force-pushed the fix/enforce-service-version-bump-ci branch from f1fe3a0 to 825c1b4 Compare April 7, 2026 20:50
@kenahrens kenahrens merged commit 3d97673 into master Apr 9, 2026
7 checks passed
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