RELEASE.md
See Ember.js Releases for an overview of how Ember.js releases work.
Ember.js consists of many packages. A release of Ember.js is considered complete upon the release blog post on the Ember blog.
This document is intended for maintainers of Ember.js. It describes the process for creating releases.
ember-source follows the Ember.js release train/cycle. There is a stable release roughly every 6 weeks (every 4 versions excluding x.0 is an LTS candidate) and a major release after every x.12 release. New deprecations targeting the next major are not permitted to land after the x.10 release. All public API changes should have an RFC and all features should behind feature flags. Features should not be enabled by default until the RFC has had a successful the Ready for Release Stage.
Features, bugfixes, deprecations and other PRs are merged primarily to the main branch.
These changes should be tagged according to what they are and whether they should be cherry-picked back to a beta, stable, or LTS release, see Commit Tagging in the CONTRIBUTING.md. These tags can also be in PR titles (as they are easier to edit after-the-fact than commit messages).
Changes to main are released on every commit to s3 as canary.
Weekly, changes on main are released as alpha on npm.
At least weekly, a contributor looks for changes from main that are tagged (and appropriate to be backported) to beta and creates a new beta release if there are changes.
In a beta cycle, there can be as few as 1 beta release or theoretically as many as needed, depending on the changes that land.
After six weeks, the beta is "promoted" to release by a contributor creating a new stable release. When the stable release is published, the prior release may be promoted to LTS, if is a successful candidate.
Generally changes should land on main. If a change needs to be backported to LTS, for example, it should be backported to beta to "settle" for a bit before being backported to release an the LTS. Rarely, a change is needed on an older version but not needed on main or newer versions. In those cases, the PR should target the branch.
main and beta if they are needed in those versions. Generally changes should be cherry-picked back to release so that they are not accidentally orphaned on older versions and so that they can be tested on beta and main before a point release.ember.js repo, on main branch, git pullgit checkout releasegit pullrelease -- take note so you know what to expect in the CHANGELOG generation.git cherry-pick -x) anything tagged release that was merged to main since the last release. To do this, look at merged PRs to find commits. The commit history isn't a good way to find these because it sorts by date, and some commits can be on old PRs that were finally merged. You may have to fix any conflicts. If this is beyond you, you can ask the original contributor to make a pull request to release.git push to let CI run. You must push changes before running the CHANGELOG generation as it uses the GitHub API to find PRs.HEAD=release PRIOR_VERSION=v5.10.1-ember-source ./bin/changelog.js | uniq | pbcopy
CHANGELOG.md under a heading for the new point release. Clean up the changelog, see Producing the CHANGELOG for the details.Add v5.10.2 to CHANGELOG for `ember-source`
package.json version to:
5.10.2
Release v5.10.2-ember-source
git tag v5.10.2-ember-source
git push origin v5.10.2-ember-source
git pushmain branch and to the beta branch.npm info ember-source.Follow the above steps but begin with the lts-5-8 branch (or whatever the LTS branch you are targeting is).
This branch may need to be created if it does not exist from the tag.
After release, if it is the latest LTS, tag as LTS with npm dist-tag add [email protected] lts.
ember.js repo, on main branch, git pullgit checkout betagit pullbeta -- take note so you know what to expect in the CHANGELOG generation.git cherry-pick -x) anything tagged beta that was merged to main since the last beta. To do this, look at merged PRs to find commits. The commit history isn't a good way to find these because it sorts by date, and some commits can be on old PRs that were finally merged. You may have to fix any conflicts. If this is beyond you, you can ask the original contributor to make a pull request to beta.git push to let CI run. You must push changes before running the CHANGELOG generation as it uses the GitHub API to find PRs.HEAD=beta PRIOR_VERSION=v5.12.0-beta.1-ember-source ./bin/changelog.js | uniq | pbcopy
CHANGELOG.md under a heading for the new beta release. Clean up the changelog, see Producing the CHANGELOG for the details.Add v5.12.0-beta.2 to CHANGELOG for `ember-source`
package.json version to:
5.12.0-beta.2
Release v5.12.0-beta.2-ember-source
git tag v5.12.0-beta.2-ember-source
git push origin v5.12.0-beta.2-ember-source
git pushnpm info ember-source.release. If there are, consider whether there should first be a point release to the old stable version before creating a new stable release.ember.js repo, on main branch, git pull.git checkout beta. (Note the branch! This is the release train).git pull.git cherry-pick -x) anything tagged release that was merged to main since the last beta release. To do this, look at merged PRs to find commits. The commit history isn't a good way to find these because it sorts by date, and some commits can be on old PRs that were finally merged. You may have to fix any conflicts. If this is beyond you, you can ask the original contributor to make a pull request to release.git push to let CI run. You must push changes before running the CHANGELOG generation as it uses the GitHub API to find PRs.PRIOR_VERSION should be the last beta release of the series.
HEAD=beta PRIOR_VERSION=v5.12.0-beta.6-ember-source ./bin/changelog.js | uniq | pbcopy
CHANGELOG.md under a heading for the new stable release. Combine the previous beta headings into one entry. Clean up the changelog, see Producing the CHANGELOG for the details.Add v5.12.0 to CHANGELOG for `ember-source`
package.json version to:
5.12.0
Release v5.12.0-ember-source
git tag v5.12.0-ember-source
git push origin v5.12.0-ember-source
beta branch into the release branch:
git co -B release
release branch:
git push -f origin release
npm info ember-source.npm dist-tag add [email protected] lts. A version is tagged LTS when the next stable version is released. LTS versions are roughly every 4 versions, excluding the x.0 minor version.ember.js repo, on main branch, git pull.git co -B beta
packages/@ember/canary-features/index.ts.sha of the last commit common to main and the old beta branch. This is typically the cherry-pick of the CHANGELOG entry.PRIOR_VERSION is that sha:
HEAD=main PRIOR_VERSION=3daedddaafd638a4a6b12e0265df30255d1512e5 ./bin/changelog.js | uniq | pbcopy
CHANGELOG.md under a heading for the new beta release. Clean up the changelog, see Producing the CHANGELOG for the details.Add v5.12.0-beta.1 to CHANGELOG for `ember-source`
package.json version to:
5.12.0-beta.1
Release v5.12.0-beta.1-ember-source
git tag v5.12.0-beta.1-ember-source
git push origin v5.12.0-beta.1-ember-source
git push -f origin beta
6.0.0-alpha.1 with message Post-relase version bump. Remember that versions go to the next major after the x.12 release per the Major Version Process RFC.The CHANGELOG should make sense from the perspective of a user. Remove anything that is not user-facing.
The CHANGELOG entry is typically the PR title, but it can often be rewritten to be more user-friendly.
Also remove the beta and release tags from the PR titles.
Title the CHANGELOG entry with the version and the date of the release in this format: ## v5.11.0 (August 15, 2023).
[DOC] changes (usually)[INTERNAL] changes (not user-facing). Some changes may warrant staying in the CHANGELOG, but most do not.[CLEANUP] entries may or may not be user-facing. This tag is typically used for removals of deprecated features.- [#12345](https://example.org/emberjs/ember.js/pull/12345) / [#67890](https://example.org/emberjs/ember.js/pull/67890) [BUGFIX] Fix an exception thrown only on Tuesdays.[FEATURE] entries:
- [#20464](https://github.com/emberjs/ember.js/pull/20464) [FEATURE] Create public import for uniqueId helper per [RFC #659](https://rfcs.emberjs.com/id/0659-unique-id-helper).[BUGFIX beta] [BUGFIX release] [BUGFIX stable] to [BUGFIX][DEPRECATION beta] [DEPRECATION release] [DEPRECATION stable] to [DEPRECATION]v5.11.0-ember-source (or whatever the version is).### CHANGLEOG.Set as the latest release only if this is the latest stable release. Do not check this for the release of a point release on an older version.