Skip to content

Commit

Permalink
Merge pull request #181 from ably/release-process
Browse files Browse the repository at this point in the history
Add an initial release process and `CHANGELOG`
  • Loading branch information
lawrence-forooghian authored Dec 5, 2024
2 parents 2b2bfc0 + f92192f commit 2d7f42a
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Change Log

## [0.1.0](https://github.com/ably/ably-chat-swift/tree/0.1.0)

Nothing here, yet. We’ll add a summary of the initial version here once we release it.
16 changes: 16 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,3 +100,19 @@ Example:
```swift
// @specUntested CHA-EX2b - I was unable to find a way to test this spec point in an environment in which concurrency is being used; there is no obvious moment at which to stop observing the emitted state changes in order to be sure that FAILED has not been emitted twice.
```

## Release process

For each release, the following needs to be done:

- Create a new branch `release/x.x.x` (where `x.x.x` is the new version number) from the `main` branch
- Update the `version` constant in [`Sources/AblyChat/Version.swift`](Sources/AblyChat/Version.swift)
- Go to [Github releases](https://github.com/ably/ably-chat-swift/releases) and press the `Draft a new release` button. Choose your new branch as a target
- Press the `Choose a tag` dropdown and start typing a new tag, Github will suggest the `Create new tag x.x.x on publish` option. After you select it Github will unveil the `Generate release notes` button
- From the newly generated changes remove everything that don't make much sense to the library user
- Copy the final list of changes to the top of the `CHANGELOG.md` file. Modify as necessary to fit the existing format of this file
- Commit these changes and push to the origin `git add CHANGELOG.md && git commit -m "Update change log." && git push -u origin release/x.x.x`
- Make a pull request against `main` and await approval of reviewer(s)
- Once approved and/or any additional commits have been added, merge the PR
- After merging the PR, wait for all CI jobs for `main` to pass.
- Publish your drafted release (refer to previous releases for release notes format)

0 comments on commit 2d7f42a

Please sign in to comment.