Skip to content

Commit 5c5809c

Browse files
author
Suchita Doshi
committed
add release-it config
1 parent 7fc0a23 commit 5c5809c

File tree

3 files changed

+1460
-86
lines changed

3 files changed

+1460
-86
lines changed

RELEASE.md

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
# Release
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+
8+
## Preparation
9+
10+
Since the majority of the actual release process is automated, the primary
11+
remaining task prior to releasing is confirming that all pull requests that
12+
have been merged since the last release have been labeled with the appropriate
13+
`lerna-changelog` labels and the titles have been updated to ensure they
14+
represent something that would make sense to our users. Some great information
15+
on why this is important can be found at
16+
[keepachangelog.com](https://keepachangelog.com/en/1.0.0/), but the overall
17+
guiding principles here is that changelogs are for humans, not machines.
18+
19+
When reviewing merged PR's the labels to be used are:
20+
21+
* breaking - Used when the PR is considered a breaking change.
22+
* enhancement - Used when the PR adds a new feature or enhancement.
23+
* bug - Used when the PR fixes a bug included in a previous release.
24+
* documentation - Used when the PR adds or updates documentation.
25+
* internal - Used for internal changes that still require a mention in the
26+
changelog/release notes.
27+
28+
29+
## Release
30+
31+
Once the prep work is completed, the actual release is straight forward:
32+
33+
* First ensure that you have `release-it` installed globally, generally done by
34+
using one of the following commands:
35+
36+
```
37+
# using https://volta.sh
38+
volta install release-it
39+
40+
# using Yarn
41+
yarn global add release-it
42+
43+
# using npm
44+
npm install --global release-it
45+
```
46+
47+
* Second, ensure that you have installed your projects dependencies:
48+
49+
```
50+
# using yarn
51+
yarn install
52+
53+
# using npm
54+
npm install
55+
```
56+
57+
* And last (but not least 😁) do your release:
58+
59+
```
60+
release-it
61+
```
62+
63+
[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.

package.json

Lines changed: 37 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,32 @@
11
{
22
"name": "ember-tracked-properties-codemod",
3-
"description": "A codemod for transforming your ember app code to start using `@tracked` properties.",
43
"version": "0.2.0",
4+
"description": "A codemod for transforming your ember app code to start using `@tracked` properties.",
5+
"keywords": [
6+
"codemod-cli",
7+
"codemods",
8+
"ember",
9+
"ember-codemod",
10+
"ember-tracked-properties"
11+
],
12+
"repository": {
13+
"type": "git",
14+
"url": "https://github.com/suchitadoshi1987/ember-tracked-properties-codemod"
15+
},
16+
"license": "MIT",
517
"author": {
618
"name": "Suchita Doshi",
719
"email": "[email protected]",
820
"url": "https://github.com/suchitadoshi1987"
921
},
10-
"license": "MIT",
22+
"bin": "./bin/cli.js",
1123
"scripts": {
1224
"test": "codemod-cli test",
1325
"update-docs": "codemod-cli update-docs"
1426
},
15-
"bin": "./bin/cli.js",
16-
"keywords": [
17-
"codemod-cli",
18-
"codemods",
19-
"ember",
20-
"ember-codemod",
21-
"ember-tracked-properties"
22-
],
27+
"jest": {
28+
"testEnvironment": "node"
29+
},
2330
"dependencies": {
2431
"codemod-cli": "^2.1.0"
2532
},
@@ -29,20 +36,31 @@
2936
"eslint": "^5.9.0",
3037
"eslint-config-prettier": "^3.3.0",
3138
"eslint-plugin-prettier": "^3.0.0",
39+
"jest": "^23.1.0",
3240
"prettier": "^1.15.2",
33-
"jest": "^23.1.0"
34-
},
35-
"jest": {
36-
"testEnvironment": "node"
41+
"release-it": "^12.2.1",
42+
"release-it-lerna-changelog": "^1.0.3"
3743
},
38-
"repository": {
39-
"type": "git",
40-
"url": "https://github.com/suchitadoshi1987/ember-tracked-properties-codemod"
44+
"engines": {
45+
"node": "8.* || 10.* || >= 12.*"
4146
},
4247
"publishConfig": {
4348
"registry": "https://registry.npmjs.org"
4449
},
45-
"engines": {
46-
"node": "8.* || 10.* || >= 12.*"
50+
"release-it": {
51+
"hooks": {
52+
"after:bump": "yarn update-docs"
53+
},
54+
"plugins": {
55+
"release-it-lerna-changelog": {
56+
"infile": "CHANGELOG.md"
57+
}
58+
},
59+
"git": {
60+
"tagName": "v${version}"
61+
},
62+
"github": {
63+
"release": true
64+
}
4765
}
4866
}

0 commit comments

Comments
 (0)