Skip to content

Commit

Permalink
Add release-it setup.
Browse files Browse the repository at this point in the history
  • Loading branch information
rwjblue committed Aug 26, 2019
1 parent fae7eab commit 60d700d
Show file tree
Hide file tree
Showing 4 changed files with 1,114 additions and 46 deletions.
2 changes: 0 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# Change Log

## v2.0.0 (2018-10-29)

#### :boom: Breaking Change
Expand Down
65 changes: 65 additions & 0 deletions RELEASE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
# 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 principles 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:

```
# using yarn
yarn install
# using npm
npm install
```

* And last (but not least 😁) do your release:

```
release-it
```

[release-it](https://github.com/release-it/release-it/) manages the actual
release process. It will prompt you through the process of choosing the version
number, tagging, pushing the tag and commits, etc.
44 changes: 31 additions & 13 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,37 +5,34 @@
"keywords": [
"ember-addon"
],
"homepage": "https://github.com/ember-cli/ember-load-initializers#readme",
"bugs": {
"url": "https://github.com/ember-cli/ember-load-initializers/issues"
},
"repository": {
"type": "git",
"url": "git+https://github.com/ember-cli/ember-load-initializers.git"
},
"license": "MIT",
"directories": {
"doc": "doc",
"test": "tests"
},
"homepage": "https://github.com/ember-cli/ember-load-initializers#readme",
"bugs": {
"url": "https://github.com/ember-cli/ember-load-initializers/issues"
},
"contributors": [
"Stefan Penner <stefan.penner@gmail.com>",
"Mattia Gheda <ghedamat@gmail.com>",
"Manuel Wiedenmann <manuel@funkensturm.de>",
"Alex Navasardyan <alex@dockyard.com>"
],
"main": "index.js",
"engines": {
"node": "6.* || 8.* || >= 10.*"
"directories": {
"doc": "doc",
"test": "tests"
},
"scripts": {
"build": "ember build",
"lint:js": "eslint .",
"prepublishOnly": "ember ts:precompile",
"postpublish": "ember ts:clean",
"start": "ember serve",
"test": "ember test",
"test:all": "ember try:each",
"prepublishOnly": "ember ts:precompile",
"postpublish": "ember ts:clean"
"test:all": "ember try:each"
},
"dependencies": {
"ember-cli-babel": "^7.10.0",
Expand Down Expand Up @@ -70,9 +67,30 @@
"eslint-plugin-node": "^8.0.0",
"lerna-changelog": "^0.8.2",
"loader.js": "^4.7.0",
"release-it": "^12.2.1",
"release-it-lerna-changelog": "^1.0.3",
"typescript": "^3.3.3333"
},
"engines": {
"node": "6.* || 8.* || >= 10.*"
},
"publishConfig": {
"registry": "https://registry.npmjs.org"
},
"ember-addon": {
"configPath": "tests/dummy/config"
},
"release-it": {
"plugins": {
"release-it-lerna-changelog": {
"infile": "CHANGELOG.md"
}
},
"git": {
"tagName": "v${version}"
},
"github": {
"release": true
}
}
}

0 comments on commit 60d700d

Please sign in to comment.