-
-
Notifications
You must be signed in to change notification settings - Fork 202
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(ci): add release-it-lerna-changelog
- Loading branch information
Showing
3 changed files
with
1,213 additions
and
31 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,11 @@ | ||
# Release Instructions | ||
|
||
Follow these steps to create a new release: | ||
1. Check that notable PRs since the last release are labeled and have clear and consistent titles | ||
|
||
1) Check that notable PRs since the last release are labeled and have clear and consistent titles | ||
2. `git pull` the latest master and ensure that `git status` shows no local changes | ||
|
||
2) `git pull` the latest master and ensure that `git status` shows no local changes | ||
3. `export GITHUB_AUTH="..."` with a [GitHub access token](https://github.com/settings/tokens/new?scopes=repo&description=release-it) with "repo" access so [release-it](https://github.com/release-it/release-it) can conduct a GitHub release and [lerna-changelog](https://github.com/lerna/lerna-changelog) can download the change history | ||
|
||
3) `lerna-changelog` – generates the changelog for the new release | ||
4. `export EDITOR="vim"` to choose an editor for editing the changelog | ||
|
||
4) Add the generated changelog to `CHANGELOG.md` (with a new version number) | ||
|
||
5) `git commit -am "Update CHANGELOG"` | ||
|
||
6) `yarn version` – updates the `version` property in the `package.json` file and creates a new git commit and tag for the release (note: do not update the version manually prior to running this command) | ||
|
||
7) `git push upstream master --follow-tags` – pushes the release commit and tag to the `upstream` remote | ||
|
||
8) Use GitHub to [publish](https://github.com/ember-cli/eslint-plugin-ember/releases/new) a new release for the pushed tag using the generated changelog (without the changelog title) as the description | ||
|
||
9) `npm pack` | ||
|
||
10) `npm publish` | ||
5. `yarn release` (uses [release-it-lerna-changelog](https://github.com/rwjblue/release-it-lerna-changelog) to handle versioning, the changelog, publishing to GitHub and NPM, etc) |
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
Oops, something went wrong.