This repository was archived by the owner on Jan 26, 2024. It is now read-only.
forked from fastly/cli
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Update RELEASE process * Update RELEASE.md Co-authored-by: Dora Militaru <[email protected]> * Update RELEASE.md Co-authored-by: Dora Militaru <[email protected]> * Use footnotes * Darwin arm64 requires updated goreleaser Co-authored-by: Dora Militaru <[email protected]>
- Loading branch information
1 parent
511ffdc
commit 7014cc5
Showing
3 changed files
with
20 additions
and
42 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,18 @@ | ||
# Releasing | ||
# Release Process | ||
|
||
### How to cut a new release of the CLI | ||
1. Merge all PRs intended for the release. | ||
2. Rebase latest remote main branch locally (`git pull --rebase origin main`). | ||
3. Ensure all analysis checks and tests are passing (`make all`). | ||
4. Open a new PR to update CHANGELOG ([example](https://github.com/fastly/cli/pull/273))<sup>[1](#note1)</sup>. | ||
5. Merge CHANGELOG. | ||
6. Rebase latest remote main branch locally (`git pull --rebase origin main`). | ||
7. Tag a new release (`git tag -s vX.Y.Z -m "vX.Y.Z" && git push origin vX.Y.Z`)<sup>[2](#note2)</sup>. | ||
8. Copy/paste CHANGELOG into the [draft release](https://github.com/fastly/cli/releases). | ||
9. Publish draft release. | ||
10. Communicate the release in the relevant Slack channels<sup>[3](#note3)</sup>. | ||
|
||
This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html); therefore first determine the appropriate version tag based on the change set. If in doubt discuss with the team via Slack before releasing. | ||
## Footnotes | ||
|
||
1. Merge all PRs intended for the release into the `main` branch | ||
1. Checkout and update the main branch and ensure all tests are passing: | ||
* `git checkout main` | ||
* `git pull` | ||
* `make all` | ||
1. Update the [`CHANGELOG.md`](https://github.com/fastly/cli/blob/main/CHANGELOG.md): | ||
* Apply necessary labels (`enchancement`, `bug`, `documentation` etc) to all PRs intended for the release that you wish to appear in the `CHANGELOG.md` | ||
* **Only add labels for relevant changes** | ||
* `git checkout -b vx.x.x` where `vx.x.x` is your target version tag | ||
* `CHANGELOG_GITHUB_TOKEN=xxxx SEMVER_TAG=vx.x.x make changelog` | ||
* **Known Issue**: We've found that the diffs generated are non-deterministic. Just re-run `make changelog` until you get a diff with just the newest additions. For more details, visit [this link](https://github.com/github-changelog-generator/github-changelog-generator/issues/580#issuecomment-380952266). | ||
* `git add CHANGELOG.md && git commit -m "vx.x.x"` | ||
1. Send PR for the `CHANGELOG.md` | ||
1. Once approved and merged, checkout and update the `main` branch: | ||
* `git checkout main` | ||
* `git pull` | ||
1. Create a new tag for `main`: | ||
* `git tag -s vx.x.x -m "vx.x.x"` | ||
1. Push the new tag: | ||
* `git push origin vx.x.x` | ||
1. Go to GitHub and check that the release was successful: | ||
* Check the release CI job status via the [Actions](https://github.com/fastly/cli/actions?query=workflow%3ARelease) tab | ||
* Check the release exists with valid assets and changelog: https://github.com/fastly/cli/releases | ||
1. Announce release internally via Slack | ||
1. Celebrate :tada: | ||
1. <a name="note1"></a>We utilize [semantic versioning](https://semver.org/) and only include relevant/significant changes within the CHANGELOG. | ||
2. <a name="note2"></a>Triggers a [github action](https://github.com/fastly/cli/blob/main/.github/workflows/tag_release.yml) that produces a 'draft' release. | ||
3. <a name="note3"></a>Fastly make internal announcements in the Slack channels: `#api-clients`, `#ecp-languages`. |