Skip to content

Commit

Permalink
Release it changelog support (adopted-ember-addons#100)
Browse files Browse the repository at this point in the history
* Adding release-it and lerna-changelog support
  • Loading branch information
jderr-mx authored Mar 5, 2020
1 parent 2623742 commit 52e49dc
Show file tree
Hide file tree
Showing 9 changed files with 6,870 additions and 2,347 deletions.
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
language: node_js
node_js:
- "6"
- "10"

sudo: false

Expand Down Expand Up @@ -32,4 +32,4 @@ install:
script:
# Usually, it's ok to finish the test scenario without reverting
# to the addon's original dependency state, skipping "cleanup".
- node_modules/.bin/ember try:one $EMBER_TRY_SCENARIO test --skip-cleanup
- ember try:one $EMBER_TRY_SCENARIO test --skip-cleanup
Empty file added CHANGELOG.md
Empty file.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Ember-cli-bugsnag

[![Build Status](https://travis-ci.com/adopted-ember-addons/ember-cli-bugsnag.svg)](https://travis-ci.com/adopted-ember-addons/ember-cli-bugsnag)
[![Build Status](https://travis-ci.com/adopted-ember-addons/ember-cli-bugsnag.svg)](https://travis-ci.com/adopted-ember-addons/ember-cli-bugsnag) [![Ember Observer Score](https://emberobserver.com/badges/ember-cli-bugsnag.svg)](https://emberobserver.com/addons/ember-cli-bugsnag)
## Installation

Install the addon:
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.
1 change: 1 addition & 0 deletions config/ember-try.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/*jshint node:true*/
module.exports = {
useYarn: true,
scenarios: [
{
name: 'default',
Expand Down
57 changes: 38 additions & 19 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,28 +2,34 @@
"name": "ember-cli-bugsnag",
"version": "1.3.0",
"description": "Integrates Bugsnag reporting service into your Ember CLI app.",
"keywords": [
"ember-addon"
],
"repository": {
"type": "git",
"url": "https://github.com/adopted-ember-addons/ember-cli-bugsnag.git"
},
"license": "MIT",
"author": "Alex Navasardyan, Ben Holmes",
"directories": {
"doc": "doc",
"test": "tests"
},
"scripts": {
"start": "ember server",
"build": "ember build",
"start": "ember server",
"test": "node node-tests/**/*-test.js && ember try:testall"
},
"repository": {
"type": "git",
"url": "https://github.com/adopted-ember-addons/ember-cli-bugsnag.git"
},
"engines": {
"node": ">= 4.4.0"
"dependencies": {
"bugsnag-js": "^3.2.0",
"ember-cli-babel": "^6.4.1",
"ember-cli-node-assets": "^0.2.2",
"fastboot-transform": "^0.1.1"
},
"author": "Alex Navasardyan, Ben Holmes",
"license": "MIT",
"devDependencies": {
"broccoli-asset-rev": "^2.4.5",
"ember-ajax": "^3.0.0",
"ember-cli": "^2.13.3",
"ember-cli": "^3.1.3",
"ember-cli-app-version": "^3.0.0",
"ember-cli-dependency-checker": "^2.0.1",
"ember-cli-eslint": "^4.0.0",
Expand All @@ -41,18 +47,31 @@
"ember-load-initializers": "^1.0.0",
"ember-resolver": "^4.0.0",
"ember-source": "^2.13.3",
"loader.js": "^4.5.1"
"ember-try": "^1.4.0",
"loader.js": "^4.5.1",
"release-it": "^12.2.1",
"release-it-lerna-changelog": "^1.0.3"
},
"keywords": [
"ember-addon"
],
"dependencies": {
"bugsnag-js": "^3.2.0",
"ember-cli-babel": "^6.4.1",
"ember-cli-node-assets": "^0.2.2",
"fastboot-transform": "^0.1.1"
"engines": {
"node": "10.* || >= 12"
},
"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
}
}
}
5 changes: 2 additions & 3 deletions testem.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,9 @@ module.exports = {
"test_page": "tests/index.html?hidepassed",
"disable_watching": true,
"launch_in_ci": [
"PhantomJS"
"phantomjs"
],
"launch_in_dev": [
"PhantomJS",
"Chrome"
"chrome"
]
};
4 changes: 2 additions & 2 deletions tests/test-helper.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ import Ember from 'ember';
import resolver from './helpers/resolver';
import {
setResolver
} from 'ember-qunit';
} from '@ember/test-helpers';
import { start } from 'ember-cli-qunit';

setResolver(resolver);
start();
start({ setupEmberOnerrorValidation: false });

import QUnitAdapter from './qunit-adapter';
Ember.Test.adapter = QUnitAdapter.create();
Loading

0 comments on commit 52e49dc

Please sign in to comment.