Skip to content

Commit a22bd63

Browse files
author
Robert Jackson
committed
Update release automation setup to latest.
`npx create-rwjblue-release-it-setup --update`
1 parent 72f4992 commit a22bd63

File tree

4 files changed

+618
-360
lines changed

4 files changed

+618
-360
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-08-20)
24

35
#### :rocket: Enhancement

RELEASE.md

Lines changed: 21 additions & 26 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,41 +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-
* First ensure that you have `release-it` installed globally, generally done by
34-
using one of the following commands:
31+
* First, ensure that you have installed your projects dependencies:
3532

33+
```sh
34+
yarn install
3635
```
37-
# using https://volta.sh
38-
volta install release-it
3936

40-
# using Yarn
41-
yarn global add release-it
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.
4241

43-
# using npm
44-
npm install --global release-it
45-
```
42+
For instance:
4643

47-
* Second, ensure that you have installed your projects dependencies:
44+
```bash
45+
export GITHUB_AUTH=abc123def456
46+
```
4847

49-
```
50-
# using yarn
51-
yarn install
52-
53-
# using npm
54-
npm install
55-
```
48+
[generate-token]: https://github.com/settings/tokens/new?scopes=repo&description=GITHUB_AUTH+env+variable
5649

57-
* And last (but not least 😁) do your release:
50+
* And last (but not least 😁) do your release.
5851

59-
```
60-
release-it
52+
```sh
53+
npx release-it
6154
```
6255

6356
[release-it](https://github.com/release-it/release-it/) manages the actual
64-
release process. It will prompt you through the process of choosing the version
65-
number, tagging, pushing the tag and commits, etc.
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: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,6 @@
1515
},
1616
"license": "MIT",
1717
"author": "",
18-
"files": [
19-
"/bin",
20-
"/lib",
21-
"/transforms/helpers",
22-
"/transforms/ember-object/index.js"
23-
],
2418
"main": ".eslintrc.js",
2519
"bin": {
2620
"ember-native-class-codemod": "./bin/cli.js"
@@ -29,6 +23,12 @@
2923
"lib": "lib",
3024
"test": "test"
3125
},
26+
"files": [
27+
"/bin",
28+
"/lib",
29+
"/transforms/helpers",
30+
"/transforms/ember-object/index.js"
31+
],
3232
"scripts": {
3333
"release": "release-it",
3434
"test": "eslint . && codemod-cli test && node ./test/run-test.js",
@@ -52,8 +52,8 @@
5252
"execa": "^4.0.0",
5353
"jest": "^25.2.0",
5454
"prettier": "^2.0.4",
55-
"release-it": "^13.5.4",
56-
"release-it-lerna-changelog": "^2.1.2"
55+
"release-it": "^14.2.1",
56+
"release-it-lerna-changelog": "^3.1.0"
5757
},
5858
"engines": {
5959
"node": "10.* || 12.* || >= 14"
@@ -67,14 +67,16 @@
6767
},
6868
"plugins": {
6969
"release-it-lerna-changelog": {
70-
"infile": "CHANGELOG.md"
70+
"infile": "CHANGELOG.md",
71+
"launchEditor": true
7172
}
7273
},
7374
"git": {
7475
"tagName": "v${version}"
7576
},
7677
"github": {
77-
"release": true
78+
"release": true,
79+
"tokenRef": "GITHUB_AUTH"
7880
}
7981
}
8082
}

0 commit comments

Comments
 (0)