Skip to content

Commit f26e100

Browse files
authored
Merge pull request #77 from jrjohnson/release-process
Update Release Process
2 parents 84ab829 + e46a6ca commit f26e100

File tree

4 files changed

+1939
-167
lines changed

4 files changed

+1939
-167
lines changed

RELEASE.md

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
# Release Process
2+
3+
Releases are mostly automated using
4+
[release-it](https://github.com/release-it/release-it/) and
5+
[lerna-changelog](https://github.com/lerna/lerna-changelog/).
6+
7+
## Preparation
8+
9+
Since the majority of the actual release process is automated, the primary
10+
remaining task prior to releasing is confirming that all pull requests that
11+
have been merged since the last release have been labeled with the appropriate
12+
`lerna-changelog` labels and the titles have been updated to ensure they
13+
represent something that would make sense to our users. Some great information
14+
on why this is important can be found at
15+
[keepachangelog.com](https://keepachangelog.com/en/1.0.0/), but the overall
16+
guiding principle here is that changelogs are for humans, not machines.
17+
18+
When reviewing merged PR's the labels to be used are:
19+
20+
* breaking - Used when the PR is considered a breaking change.
21+
* enhancement - Used when the PR adds a new feature or enhancement.
22+
* bug - Used when the PR fixes a bug included in a previous release.
23+
* documentation - Used when the PR adds or updates documentation.
24+
* internal - Used for internal changes that still require a mention in the
25+
changelog/release notes.
26+
27+
## Release
28+
29+
Once the prep work is completed, the actual release is straight forward:
30+
31+
* First, ensure that you have installed your projects dependencies:
32+
33+
```sh
34+
yarn install
35+
```
36+
37+
* Second, ensure that you have obtained a
38+
[GitHub personal access token][generate-token] with the `repo` scope (no
39+
other permissions are needed). Make sure the token is available as the
40+
`GITHUB_AUTH` environment variable.
41+
42+
For instance:
43+
44+
```bash
45+
export GITHUB_AUTH=abc123def456
46+
```
47+
48+
[generate-token]: https://github.com/settings/tokens/new?scopes=repo&description=GITHUB_AUTH+env+variable
49+
50+
* And last (but not least 😁) do your release.
51+
52+
```sh
53+
npx release-it
54+
```
55+
56+
[release-it](https://github.com/release-it/release-it/) manages the actual
57+
release process. It will prompt you to to choose the version number after which
58+
you will have the chance to hand tweak the changelog to be used (for the
59+
`CHANGELOG.md` and GitHub release), then `release-it` continues on to tagging,
60+
pushing the tag and commits, etc.

bin/changelog

Lines changed: 0 additions & 85 deletions
This file was deleted.

package.json

Lines changed: 34 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,21 @@
22
"name": "ember-cli-deploy-build",
33
"version": "2.0.0",
44
"description": "A Build Plugin for ember-cli-deploy",
5+
"keywords": [
6+
"ember-addon",
7+
"ember-cli-deploy-plugin"
8+
],
9+
"repository": "https://github.com/ember-cli-deploy/ember-cli-deploy-build",
10+
"license": "MIT",
11+
"author": "Aaron Chambers and the ember-cli-deploy team",
12+
"directories": {
13+
"doc": "doc",
14+
"test": "tests"
15+
},
516
"scripts": {
617
"lint:js": "eslint .",
718
"test": "mocha tests/**/*-test.js --exit"
819
},
9-
"engines": {
10-
"node": "12.* || 14.* || >= 16"
11-
},
1220
"dependencies": {
1321
"chalk": "^1.0.0",
1422
"ember-cli-deploy-plugin": "^0.2.1",
@@ -32,20 +40,31 @@
3240
"glob": "^7.1.1",
3341
"loader.js": "^4.7.0",
3442
"mocha": "^6.2.0",
35-
"multiline": "^1.0.2"
43+
"release-it": "^14.2.1",
44+
"release-it-lerna-changelog": "^3.1.0"
3645
},
37-
"keywords": [
38-
"ember-addon",
39-
"ember-cli-deploy-plugin"
40-
],
41-
"repository": "https://github.com/ember-cli-deploy/ember-cli-deploy-build",
42-
"license": "MIT",
43-
"author": "Aaron Chambers and the ember-cli-deploy team",
44-
"directories": {
45-
"doc": "doc",
46-
"test": "tests"
46+
"engines": {
47+
"node": "12.* || 14.* || >= 16"
48+
},
49+
"publishConfig": {
50+
"registry": "https://registry.npmjs.org"
4751
},
4852
"ember-addon": {
4953
"configPath": "tests/dummy/config"
54+
},
55+
"release-it": {
56+
"plugins": {
57+
"release-it-lerna-changelog": {
58+
"infile": "CHANGELOG.md",
59+
"launchEditor": true
60+
}
61+
},
62+
"git": {
63+
"tagName": "v${version}"
64+
},
65+
"github": {
66+
"release": true,
67+
"tokenRef": "GITHUB_AUTH"
68+
}
5069
}
51-
}
70+
}

0 commit comments

Comments
 (0)