| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
- Patch version bumped in deploy-staging.yaml before calling the Render hook, ensuring staging always runs the version shown on the dev branch - Minor version bumped in deploy-prod.yaml after syncing dev to main, with patch reset to 0 and the bump synced back to dev afterward to prevent branch divergence on subsequent deploys
There was a problem hiding this comment.
This PR adds automated semantic version bumping to the deployment workflows: patch bumps on dev during staging deploys, and minor bumps on main during production deploys, with additional branch sync steps to keep dev and main aligned.
Changes:
Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
| .github/workflows/deploy-staging.yaml | Adds concurrency control and auto patch bump + push to dev before triggering the staging deploy hook. |
| .github/workflows/deploy-prod.yaml | Adds auto minor bump on main, syncs the bump back to dev, and rewires job needs to reflect the new sequencing. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Sorry, something went wrong.
- staging: guard against feedback loop by skipping bot bump commits, checkout exact validated SHA instead of rebasing on latest dev, verify dev HEAD matches before bumping, push via HEAD:dev from detached HEAD - prod: add error handler with recovery message to sync-minor-to-dev fast-forward step, add missing permissions/contents:write to sync-dev-to-main, remove no-op git merge --abort after --ff-only failure
| Back | FazBrowse Home | New Git URL |
This pull request introduces automated version bumping to the deployment workflows and improves the safety and consistency of deployments to both staging and production environments. The main changes include adding a script for version bumping, updating the GitHub Actions workflows to use this script, and enhancing deployment checks to prevent accidental or redundant deployments.
Automated version management and deployment workflow improvements:
Version bumping automation:
Production deployment workflow (.github/workflows/deploy-prod.yaml):
Staging deployment workflow (.github/workflows/deploy-staging.yaml):