Repository navigation
chore: add local release workflow and rules - #54
Merged
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
There was a problem hiding this comment.
Copilot review overview
🟡 Changes recommended
Release provenance, annotated-tag validation, and interrupted Latest-state recovery have unresolved correctness issues.
Review effort: Balanced
Findings: 1
Open (3)
What changed in this PR
Adds a local, repeatable release pipeline for One CLI with pinned builds, artifact verification, publishing recovery, and bilingual documentation.
Changes:
- Adds release planning, building, publishing, and rule tests.
- Restores five-target GoReleaser packaging and mise tasks.
- Documents release procedures and includes the Dashboard formatting fix.
| File | Description |
|---|---|
.goreleaser.yaml |
Defines release archives and build metadata. |
scripts/release.mts |
Implements the release workflow. |
scripts/release-rules.mts |
Defines versioning and artifact rules. |
scripts/release-rules.test.mts |
Tests release rules and validation. |
mise.toml |
Registers release tasks and checks. |
RELEASING.md |
Documents bilingual release procedures. |
AGENTS.md |
Adds repository release conventions. |
CONTRIBUTING.md |
Links contributor release guidance. |
apps/dashboard/src/features/global-variables/GlobalVariables.tsx |
Applies the required import formatting. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
| }); | ||
| run("git", ["checkout", "--detach", p.sourceSha], { cwd: source }); | ||
| const config = join(dir, "goreleaser.yaml"); | ||
| copyFileSync(join(root, ".goreleaser.yaml"), config); |
Comment on lines
+176
to
+181
| if ( | ||
| git(build.source, "rev-parse", "HEAD") !== build.plan.sourceSha || | ||
| git(build.source, "status", "--porcelain", "--untracked-files=no") | ||
| ) { | ||
| fail("The release source checkout changed after validation.", "验证后发布源码副本发生变化。"); | ||
| } |
Comment on lines
+368
to
+370
| if (release && !release.draft) { | ||
| say(`Already published: ${release.html_url}`, `已完成发布:${release.html_url}`); | ||
| return; |
This branch was successfully deployed
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.


The previous commit removed the release workflow and GoReleaser configuration, leaving no repeatable publishing entry point. Restore the five-platform GoReleaser configuration and add
mise run releasewith plan, build, and publish stages using an independent clean source checkout.Preserve semantic tag versioning, fixed release-channel and skill-source SHA injection, annotated tags, draft uploads, exact asset checks, SHA256 verification after downloading uploaded assets, idempotency, and interrupted-release recovery. Record the bilingual release rules in RELEASING.md and link them from AGENTS.md and CONTRIBUTING.md. Include the existing Dashboard import-format fix required to pass the release gate.
Validation:
mise run checkpassed after the format fix; eight release-rule tests passed; the release scripts passed TypeScript checking;one init mise --dry-run -o jsonreports no pending configuration changes;git diff --checkpassed. The release task invokes the full forced check and validates all five packages before any remote tag or release write.