ci(release): add local check and release flow - #1
Merged
Conversation
Use the embedded ExitError Sys helper directly so the recorder stays clean under the new staticcheck gate without changing SIGINT handling.
Mirror the Omakiten workflow for Backstage: run the local verification gate through mise, post local-check statuses from the pre-push hook, and automate release-please plus GoReleaser releases from master.
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.
Before
masterrequired thelocal-checkstatus, but Backstage did not yet ship the local hook/status script that produces it.After
mise run checkis the canonical local gate, and the tracked pre-push hook postslocal-checkfor PR branch heads.masterrun release-please; release PR merges create GitHub releases and GoReleaser artifacts.Summary of changes
scripts/check.shscripts/local-check.shandscripts/hooks/pre-pushto post the requiredlocal-checkstatusmasterrelease workflow.docs/internal/dev-guide.mdand linked it from.docs/README.mdFiles updated
.mise.toml.golangci.ymlscripts/check.shscripts/local-check.shscripts/hooks/pre-push.github/workflows/release.yml.goreleaser.ymlrelease-please-config.json.release-please-manifest.json.docs/internal/dev-guide.md.docs/README.mdinternal/recorder/gpu.goValidation
mise run checkscripts/local-check.sh --dry-runThis-Is-NPC/backstageand prints pending/success status callsscripts/local-check.sh --pre-push --dry-runlocal-checksuccess ond5ed095ec98cf8cb76202c9767e236f6855d0d36masterrequires strictlocal-checkDeviations
goreleaser checkwas not run locallygoreleaser-actionv6Risks / follow-ups
References
90b5114,d5ed095feature/release