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.
-
Look for any PRs targeting release that have not been merged. Consider if they are ready to be merged, and if so, ensure the changes are also on
main
andbeta
if they are needed in those versions. Generally changes should be cherry-picked back torelease
so that they are not accidentally orphaned on older versions and so that they can be tested onbeta
andmain
before a point release. -
In
ember.js
repo, on main branch,git pull
-
git checkout release
-
git pull
-
Look for any unreleased changes on
release
-- take note so you know what to expect in the CHANGELOG generation. -
Cherry-pick (using
git cherry-pick -x
) anything taggedrelease
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 torelease
. -
git push
to let CI run. You must push changes before running the CHANGELOG generation as it uses the GitHub API to find PRs. -
Generate Changelog:
HEAD=release PRIOR_VERSION=v5.10.1-ember-source ./bin/changelog.js | uniq | pbcopy
-
Put the results in
CHANGELOG.md
under a heading for the new point release. Clean up the changelog, see Producing the CHANGELOG for the details. -
Commit with message:
Add v5.10.2 to CHANGELOG for `ember-source`
-
Update
package.json
version to:5.10.2
-
Commit with message:
Release v5.10.2-ember-source
-
Tag commit:
git tag v5.10.2-ember-source
-
Push tag:
git push origin v5.10.2-ember-source
-
Push changes
git push
-
Cherry-pick changelog commit to
main
branch and to thebeta
branch. -
Draft release on Github, see Creating a Release on Github.
-
Wait for CI on the tag and check published to npm with
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
.
- In
ember.js
repo, on main branch,git pull
git checkout beta
git pull
- Look for any unreleased changes on
beta
-- take note so you know what to expect in the CHANGELOG generation. - Cherry-pick (using
git cherry-pick -x
) anything taggedbeta
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 tobeta
. git push
to let CI run. You must push changes before running the CHANGELOG generation as it uses the GitHub API to find PRs.- Generate Changelog
HEAD=beta PRIOR_VERSION=v5.12.0-beta.1-ember-source ./bin/changelog.js | uniq | pbcopy
- Put the results in
CHANGELOG.md
under a heading for the new beta release. Clean up the changelog, see Producing the CHANGELOG for the details. - Commit with message:
Add v5.12.0-beta.2 to CHANGELOG for `ember-source`
- Update
package.json
version to:5.12.0-beta.2
- Commit with message:
Release v5.12.0-beta.2-ember-source
- Tag commit:
git tag v5.12.0-beta.2-ember-source
- Push tag:
git push origin v5.12.0-beta.2-ember-source
- Push changes to branch
git push
- Cherry-pick changelog commit to main branch.
- Draft release on Github, see Creating a Release on Github.
- Wait for CI on the tag and check published to npm with
npm info ember-source
.
- Look for any unreleased changes on
release
. If there are, consider whether there should first be a point release to the old stable version before creating a new stable release. - In
ember.js
repo, on main branch,git pull
. git checkout beta
. (Note the branch! This is the release train).git pull
.- Cherry-pick (using
git cherry-pick -x
) anything taggedrelease
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 torelease
. git push
to let CI run. You must push changes before running the CHANGELOG generation as it uses the GitHub API to find PRs.- Generate Changelog. The
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
- Put the results in
CHANGELOG.md
under a heading for the new stable release. Combine the previousbeta
headings into one entry. Clean up the changelog, see Producing the CHANGELOG for the details. - Commit with message
Add v5.12.0 to CHANGELOG for `ember-source`
- Update
package.json
version to:5.12.0
- Commit with message:
Release v5.12.0-ember-source
- Tag commit:
git tag v5.12.0-ember-source
- Push tag:
git push origin v5.12.0-ember-source
- Make the
beta
branch into therelease
branch:git co -B release
- Push the new
release
branch:git push -f origin release
- Cherry-pick changelog commit to main branch.
- Draft release on Github, see Creating a Release on Github.
- Wait for CI on the tag and check published to npm with
npm info ember-source
. - Consider whether to tag the previous version as LTS with
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 thex.0
minor version. - Mark the release as complete in the Ember discord.
- Create the new beta.
- In
ember.js
repo, on main branch,git pull
. - Make a new beta branch:
git co -B beta
- Toggle off any features that have not been explicitly toggled on in
packages/@ember/canary-features/index.ts
. - Find the
sha
of the last commit common tomain
and the oldbeta
branch. This is typically the cherry-pick of the CHANGELOG entry. - Generate Changelog. The
PRIOR_VERSION
is thatsha
:HEAD=main PRIOR_VERSION=3daedddaafd638a4a6b12e0265df30255d1512e5 ./bin/changelog.js | uniq | pbcopy
- Put the results in
CHANGELOG.md
under a heading for the new beta release. Clean up the changelog, see Producing the CHANGELOG for the details. - Commit with message:
Add v5.12.0-beta.1 to CHANGELOG for `ember-source`
- Update
package.json
version to:5.12.0-beta.1
- Commit with message:
Release v5.12.0-beta.1-ember-source
- Tag commit:
git tag v5.12.0-beta.1-ember-source
- Push tag:
git push origin v5.12.0-beta.1-ember-source
- Push changes to branch:
git push -f origin beta
- Cherry-pick changelog commit to main branch.
- Update the main branch version to the next version in package.json:
6.0.0-alpha.1
with messagePost-relase version bump
. Remember that versions go to the next major after thex.12
release per the Major Version Process RFC. - Draft release on Github, see Creating a Release on Github.
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)
.
- Remove any
[DOC]
changes (usually) - Remove any entries for PRs that were in prior (by semver) releases
- Remove any
[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.- Collapse multiple PRs that were for the same issue into a single entry:
- [#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.
- Handle any
[FEATURE]
entries:- If the feature is still behind a non-enabled feature flag, remove the entry.
- If the feature is now enabled by default, add an entry:
- Find the PRs that contributed to the feature.
- Link to the RFC that introduced the feature on the RFC website in the entry:
- [#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).
- Change
[BUGFIX beta]
[BUGFIX release]
[BUGFIX stable]
to[BUGFIX]
- Change
[DEPRECATION beta]
[DEPRECATION release]
[DEPRECATION stable]
to[DEPRECATION]
- Handle any other PR or commit tags similarly.
- Go to the Ember.js releases page
- Click the "Draft a new release" button
- Choose the tag of the release you just created
- Title the release with the name of the tag
v5.11.0-ember-source
(or whatever the version is). - Add a header to the description of
### CHANGLEOG
. - Copy the CHANGELOG entry for the version below this header.
- Check 'Pre-release' if this is not a stable release.
- Choose
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.