Skip to content

Commit

Permalink
Add rwjblue release-it config
Browse files Browse the repository at this point in the history
  • Loading branch information
RobbieTheWagner committed May 5, 2020
1 parent d269231 commit 8bf7978
Show file tree
Hide file tree
Showing 3 changed files with 1,388 additions and 77 deletions.
67 changes: 67 additions & 0 deletions RELEASE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
# Release

Releases are mostly automated using
[release-it](https://github.com/release-it/release-it/) and
[lerna-changelog](https://github.com/lerna/lerna-changelog/).


## Preparation

Since the majority of the actual release process is automated, the primary
remaining task prior to releasing is confirming that all pull requests that
have been merged since the last release have been labeled with the appropriate
`lerna-changelog` labels and the titles have been updated to ensure they
represent something that would make sense to our users. Some great information
on why this is important can be found at
[keepachangelog.com](https://keepachangelog.com/en/1.0.0/), but the overall
guiding principle here is that changelogs are for humans, not machines.

When reviewing merged PR's the labels to be used are:

* breaking - Used when the PR is considered a breaking change.
* enhancement - Used when the PR adds a new feature or enhancement.
* bug - Used when the PR fixes a bug included in a previous release.
* documentation - Used when the PR adds or updates documentation.
* internal - Used for internal changes that still require a mention in the
changelog/release notes.


## Release

Once the prep work is completed, the actual release is straight forward:

* First ensure that you have `release-it` installed globally, generally done by
using one of the following commands:

```
# using https://volta.sh
volta install release-it
# using Yarn
yarn global add release-it
# using npm
npm install --global release-it
```

* Second, ensure that you have installed your projects dependencies:

```
yarn install
```

* And last (but not least 😁) do your release. It requires a
[GitHub personal access token](https://github.com/settings/tokens) as
`$GITHUB_AUTH` environment variable. Only "repo" access is needed; no "admin"
or other scopes are required.

```
export GITHUB_AUTH="f941e0..."
release-it
```

[release-it](https://github.com/release-it/release-it/) manages the actual
release process. It will prompt you to to choose the version number after which
you will have the chance to hand tweak the changelog to be used (for the
`CHANGELOG.md` and GitHub release), then `release-it` continues on to tagging,
pushing the tag and commits, etc.
36 changes: 28 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,18 @@
"lint": "npm-run-all --aggregate-output --continue-on-error --parallel lint:*",
"lint:hbs": "ember-template-lint .",
"lint:js": "eslint .",
"prepare": "./scripts/link-them.sh",
"start": "ember serve",
"test": "npm-run-all lint:* test:*",
"test:browser": "ember test --test-port=0",
"test:ember": "ember test",
"test:ember-compatibility": "ember try:each",
"test:browser": "ember test --test-port=0",
"test:node": "mocha tests-node --recursive",
"test:test-apps": "cd test-apps/new-addon && yarn test",
"prepare": "./scripts/link-them.sh"
"test:test-apps": "cd test-apps/new-addon && yarn test"
},
"resolutions": {
"**/tough-cookie": "~2.4.0",
"ember-assign-polyfill": "^2.6.0"
},
"dependencies": {
"@glimmer/syntax": "^0.42.2",
Expand Down Expand Up @@ -137,15 +141,16 @@
"loader.js": "^4.7.0",
"mocha": "^6.2.3",
"npm-run-all": "^4.1.5",
"qunit-dom": "^1.1.0"
},
"resolutions": {
"**/tough-cookie": "~2.4.0",
"ember-assign-polyfill": "^2.6.0"
"qunit-dom": "^1.1.0",
"release-it": "^13.5.7",
"release-it-lerna-changelog": "^2.3.0"
},
"engines": {
"node": "10.* || >= 12"
},
"publishConfig": {
"registry": "https://registry.npmjs.org"
},
"ember-addon": {
"configPath": "tests/dummy/config",
"before": [
Expand All @@ -157,5 +162,20 @@
"after": [
"ember-modal-dialog"
]
},
"release-it": {
"plugins": {
"release-it-lerna-changelog": {
"infile": "CHANGELOG.md",
"launchEditor": true
}
},
"git": {
"tagName": "v${version}"
},
"github": {
"release": true,
"tokenRef": "GITHUB_AUTH"
}
}
}
Loading

0 comments on commit 8bf7978

Please sign in to comment.