Skip to content

Latest commit

 

History

History
103 lines (78 loc) · 6.94 KB

PUBLISHING.md

File metadata and controls

103 lines (78 loc) · 6.94 KB

Publishing instruction for the core team developers.

Current release owner ✨@adrastaea✨ (September 2024)



Release Trigger

  • Quiet Planning Board is up to date
  • All issues to be included from Sprint are merged and moved to Merged
  • Ready for QA column is empty of issues from previous releases

Branching Rules

  1. Release branches are based on the develop branch.
  2. Release branches are named after the version number, e.g. 2.1.0 not the pre-release version number, e.g. 2.1.0-alpha.1.
  3. Once a release branch is created, it is frozen and no new features are to be merged into it. Only bug fixes are allowed.
  4. Release branches are never deleted.
  5. Any hotfixes for the release branch are merged into the release branch and then cherry-picked into the develop branch if necessary.
# Example of branching strategy
/develop  ->      /2.1.0       ->  #patch-commit
          ->  #feature-commit  ->  #patch-commit (cherry-picked)  -> /2.2.0
                                                                  -> ...

Release Flow

  1. Prepare a release candidate (alpha).
  2. Deliver the alpha to QA.
  3. QA tests the alpha.
  4. If QA finds issues, a github issue is created and moved to the Sprint column. Any fixes are merged into the release branch and develop branch.
  5. If QA finds no issues, the release is approved.
  6. A production release is built.
  7. QA tests the production release.
  8. Production release is published.

Checklist Before Alpha Release

  • Release branch is created from develop branch with the production version number, e.g. 2.1.0.
  • Reviewed the base CHANGELOG.md file and ensured that it is up to date with all changes included in the release since the last production release. Package level CHANGELOG.md files are automatically updated during the release process.
  • Reviewed the Quiet Planning Board and ensured all issues contained in the release candidate are in the Ready for QA column.

Preparing a Release Candidate (Alpha)

Alpha releases are pre-release versions of the release which are delivered to QA for testing. They are versioned with a pre-release version number, e.g. 2.1.0-alpha.0.

  1. Generate a Github Personal Access Token and set it as GH_TOKEN environment variable (or include it in the command as shown below).
  2. Trigger a pre-release with GH_TOKEN=<token> npm run publish --release=[prepatch|preminor|premajor|<EXACT_VERSION>] (e.g. to create a prerelease of a minor update npm run publish --release=preminor) This will increment the versions of every package that has changed, create a release on the Releases Page, and trigger Github Actions to deploy the alpha release to the Google Play Store and App Store.
  3. Manually update the release notes on the Releases Page with the changes included in the alpha release. See RELEASE_NOTES_GUIDE.md for guidance on writing release notes.
  4. Promote the alpha release on the Google Play Console to a closed testing track. Contact @holmesworcester if you need access to the organization.
  5. Notify QA that the alpha release is ready for testing.

Checklist Before Production Release

  • Build is working correctly, passes automated tests and self-QA
  • Alpha was delivered for QA
  • Sprint column is free from QA reported blocking issues
  • QA approved the release
  • All hotfixes for issues discovered in alpha releases have been merged into the release (and develop) branch
  • CHANGELOG.md is up to date and approved by @holmesworcester
  • PM approved the release

Preparing a Production Release

  1. If not already done, generate a Github Personal Access Token and set it as GH_TOKEN environment variable (or include it in the command as shown below).
  2. Trigger a production release with GH_TOKEN=<token> npm run publish --release=[patch|minor|major|<EXACT_VERSION>] (e.g. to create a prerelease of a minor update npm run publish --release=minor) This should remove the alpha.x suffix, and create a release on the Releases Page, and trigger Github Actions to deploy the release to the Google Play Store and App Store. If the semantic version is different from the alpha release, select no in the prompt to create new versions, and call the command again with the exact version.
  3. Manually update the release notes on the Releases Page with the changes included in the release. See RELEASE_NOTES_GUIDE.md for guidance on writing release notes.
  4. Promote the release on the Google Play Console to a production track.
  5. Promote the release on the App Store Connect.
  6. Checkout the gh-pages branch, and create a PR (example) to update the download links on the Quiet website to point to the new release.

Post-release checklist (production)

  • Release build completed successfully and the assets are uploaded to the release page
  • Download links are updated on website
  • App is promoted and sent for review on a production track in Google Play
  • App is promoted and sent for review on an external track in App Store (Test Flight)
  • Issues in Ready for QA are moved to Done

QA

QA tests for issues on all the supported platforms, moves discovered blocking issues into the Sprint column, and notifies the team in the Slack #qa channel.

QA will test according to the following checklists: Quiet Desktop Checklist Quiet Mobile Checklist Quiet Prod Checklist

Rules for QA and Release Approval

  1. Team drops any other work to work on new issues blocking release
  2. PM can asynchronously decide a bug is not a blocker
  3. Team and QA can consult PM if they suspect a bug is not really a blocker despite meeting criteria
  4. PM can approve release in advance, pending completion of issues, or wait to give approval