| ## Features |
| 9 | * ... |
| 10 |
| 11 | ## Improvements |
| 12 | * ... |
| 13 |
| 14 | ## Fixes |
| 15 | * ... |
| 16 | ``` |
| 17 |
| 18 | This file is used by GoReleaser as the GitHub Release body. |
| 19 |
| 20 | ## 2. Bump Version |
| 21 |
| 22 | Update the version string in `pkg/util/version/version.go`: |
| 23 |
| 24 | ```go |
| 25 | var version = "0.X.0" |
| 26 | ``` |
| 27 |
| 28 | Commit and push to `dev`: |
| 29 |
| 30 | ```bash |
| 31 | git add pkg/util/version/version.go Release.md |
| 32 | git commit -m "bump version to vX.Y.Z" |
| 33 | git push origin dev |
| 34 | ``` |
| 35 |
| 36 | ## 3. Pre-release Validation |
| 37 |
| 38 | Run the standard e2e suite locally: |
| 39 |
| 40 | ```bash |
| 41 | make e2e |
| 42 | ``` |
| 43 |
| 44 | For releases that touch compatibility-sensitive areas such as login, control |
| 45 | connections, work connections, visitors, transport, or wire protocol handling, |
| 46 | also run the manual compatibility e2e suite: |
| 47 |
| 48 | ```bash |
| 49 | make e2e-compatibility |
| 50 | make e2e-compatibility-floor |
| 51 | ``` |
| 52 |
| 53 | `make e2e-compatibility` builds the current `frps` and `frpc`, resolves the |
| 54 | recent stable release baselines from GitHub, downloads or reuses their binaries, |
| 55 | and tests current binaries against those historical releases. The default number |
| 56 | of recent baselines is controlled by `FRP_COMPAT_BASELINE_COUNT` in the |
| 57 | `Makefile`. |
| 58 |
| 59 | Downloaded release binaries are cached under: |
| 60 |
| 61 | ```text |
| 62 | .cache/e2e-compat/<version>/<os>_<arch>/ |
| 63 | ``` |
| 64 |
| 65 | For a release validation run that must be exactly reproducible, pass an explicit |
| 66 | baseline matrix instead of using the floating recent-release list: |
| 67 |
| 68 | ```bash |
| 69 | FRP_COMPAT_BASELINE_VERSIONS="0.X.0 0.Y.0" make e2e-compatibility |
| 70 | ``` |
| 71 |
| 72 | Use `make e2e-compatibility-smoke` for a quick single-baseline check while |
| 73 | iterating locally. If GitHub release metadata requests are rate-limited, set |
| 74 | `GITHUB_TOKEN` or use `FRP_COMPAT_BASELINE_VERSIONS`. |
| 75 |
| 76 | The compatibility floor is a support-policy decision, not a value that should |
| 77 | change every release. Update `FRP_COMPAT_FLOOR_VERSION` only when the declared |
| 78 | compatibility window changes. |
| 79 |
| 80 | ## 4. Merge dev → master |
| 81 |
| 82 | Create a PR from `dev` to `master`: |
| 83 |
| 84 | ```bash |
| 85 | gh pr create --base master --head dev --title "bump version" |
| 86 | ``` |
| 87 |
| 88 | Wait for CI to pass, then merge using **merge commit** (not squash). |
| 89 |
| 90 | ## 5. Tag the Release |
| 91 |
| 92 | ```bash |
| 93 | git checkout master |
| 94 | git pull origin master |
| 95 | git tag -a vX.Y.Z -m "bump version" |
| 96 | git push origin vX.Y.Z |
| 97 | ``` |
| 98 |
| 99 | ## 6. Trigger GoReleaser |
| 100 |
| 101 | Manually trigger the `goreleaser` workflow in GitHub Actions: |
| 102 |
| 103 | ```bash |
| 104 | gh workflow run goreleaser --ref master |
| 105 | ``` |
| 106 |
| 107 | GoReleaser will: |
| 108 | 1. Run `package.sh` to cross-compile all platforms and create archives |
| 109 | 2. Create a GitHub Release with all packages, using `Release.md` as release notes |
| 110 |
| 111 | ## Key Files |
| 112 |
| 113 | | File | Purpose | |
| 114 | |------|---------| |
| 115 | | `pkg/util/version/version.go` | Version string | |
| 116 | | `Release.md` | Release notes (read by GoReleaser) | |
| 117 | | `.goreleaser.yml` | GoReleaser config | |
| 118 | | `package.sh` | Cross-compile and packaging script | |
| 119 | | `.github/workflows/goreleaser.yml` | GitHub Actions workflow (manual trigger) | |
| 120 |
| 121 | ## Versioning |
| 122 |
| 123 | - Minor release: `v0.X.0` |
| 124 | - Patch release: `v0.X.Y` (e.g., `v0.62.1`) |