Skip to content

Commit 41dbe25

Browse files
authored
Merge pull request #343 from emberjs/update-release-automation
Update release setup
2 parents 74852da + dce5b14 commit 41dbe25

File tree

3 files changed

+35
-12
lines changed

3 files changed

+35
-12
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# Changelog
2+
13
## v1.1.0 (2019-10-04)
24

35
#### :rocket: Enhancement

RELEASE.md

Lines changed: 29 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
1-
# Release
1+
# Release Process
22

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

7-
87
## Preparation
98

109
Since the majority of the actual release process is automated, the primary
@@ -14,7 +13,7 @@ have been merged since the last release have been labeled with the appropriate
1413
represent something that would make sense to our users. Some great information
1514
on why this is important can be found at
1615
[keepachangelog.com](https://keepachangelog.com/en/1.0.0/), but the overall
17-
guiding principles here is that changelogs are for humans, not machines.
16+
guiding principle here is that changelogs are for humans, not machines.
1817

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

@@ -25,17 +24,37 @@ When reviewing merged PR's the labels to be used are:
2524
* internal - Used for internal changes that still require a mention in the
2625
changelog/release notes.
2726

28-
2927
## Release
3028

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

33-
```
31+
* First, ensure that you have installed your projects dependencies:
32+
33+
```sh
3434
yarn install
35-
yarn release
3635
```
3736

38-
The `release` script leverages
39-
[release-it](https://github.com/release-it/release-it/) to do the mechanical
40-
release process. It will prompt you through the process of choosing the version
41-
number, tagging, pushing the tag and commits, etc.
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.

package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,14 +85,16 @@
8585
"release-it": {
8686
"plugins": {
8787
"release-it-lerna-changelog": {
88-
"infile": "CHANGELOG.md"
88+
"infile": "CHANGELOG.md",
89+
"launchEditor": true
8990
}
9091
},
9192
"git": {
9293
"tagName": "v${version}"
9394
},
9495
"github": {
95-
"release": true
96+
"release": true,
97+
"tokenRef": "GITHUB_AUTH"
9698
}
9799
}
98100
}

0 commit comments

Comments
 (0)