Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,16 @@ install:

script:
- npm run-script $NPM_SCRIPT

before_deploy:
- yarn global add auto-dist-tag
- auto-dist-tag --write

deploy:
provider: npm
email: katie@kmg.io
api_key:
secure: 1lwhuEjgX41j06ObP6VNIFXSWzTPylvG/iOa5BYdCmazFS5ry9d5CYBpTsGB6GhPfhPVYbrefwQSMerK7vzls6PfIxnSpGudIb48PGlHxZOlb5SQ/FOclWzwOylrCBSDWv0YRjlIkLkGf9VTo9zVBLvUWQs22ec40dVqcovj4Yy5YKRa2t3vLvOqV8KNx4n6AYmbSljZoJ6OePhSaYIwMYq56eBaphjumj7/cBShQ594azf0RBnvb2ILC2SixreiFTakThHAlNTbkIbMRdByzygZDTeZVLHoDaY5ZDmwBGP+SW25Qz6o2dLDAA5Xv4yhIGX4Zulai3nfhap0Jf65u/bGIK+4auZg1x0usjkewIqc8R7f+GKMjkhXCTA7bDtRmrkHA/WjdNiAXBaqRdFUwBaIJisL9RPpffgkgelMWHYwAH4R871pA0q8ebGsIY8KDsS0v6MeQT/jwCM4yVnNSYyJpLwIoZy0pLBII9rtdugEYL5wzBAfmmlBenyj5cYx/94bWw6R3aeZSEOTke8/JzzsH6dbjQEsPj21sHNS+DUCEdX5pX8xBWWDMsO/WBrzJptSXtyKdabnrpt2muF6VPUqHFGIlu/cS4RMswebJF160g3OhcFgSpbaXH60tKP2xIRzQx7KczL5+CM3E61XPsEyCfZ79KyUcr4zWJoS96Y=
on:
tags: true
repo: kategengler/ember-cli-code-coverage
37 changes: 37 additions & 0 deletions RELEASE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# Release Process

The following is the release process you should follow to publish a new version of `ember-cli-code-coverage`.

## Update The Changelog

First, we need to update the `CHANGELOG.md` file for the project. We do this via the [lerna-changelog](https://github.com/lerna/lerna-changelog). This requires all PRs to be labeled appropriately. Use the following command to generate the changelog from the most recent tag:

```bash
yarn changelog
```

Copy the output into `CHANGELOG.md`, where you replace the `Unreleased` with the appropriate version you are publishing.

_Note: Ensure you set up a GitHub Token (as GITHUB_AUTH environment variable) when using the changelog generator, or else it will not work properly._

Review the changes and then commit them with a message like:

```bash
git commit -am "Update CHANGELOG for vx.x.x."
```

## Bump The Version

Next, we bump the version of the addon and tag it. You can do this by using the default `npm version` command, like so:

```bash
npm version x.x.x
```

That should bump the version in `package.json`, commit it, and then tag it. Be sure to push the commit and tag.

## Publish
Next, push the version bump and the changelog changes to the repository. Upon successful build of the tag, Travis CI will publish to `npm`.


**This RELEASE.md shamelessly cribbed from `ember-cli-qunit`**
23 changes: 0 additions & 23 deletions config/changelog.js

This file was deleted.

8 changes: 0 additions & 8 deletions config/release.js

This file was deleted.

16 changes: 13 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@
"node-test": "mocha test/**/*-test.js",
"browser-test": "COVERAGE=true ember test",
"lint:js": "eslint ./*.js addon addon-test-support app config lib server test-support test tests",
"test": "npm run-script lint:js && npm run-script node-test"
"test": "npm run-script lint:js && npm run-script node-test",
"changelog": "lerna-changelog"
},
"dependencies": {
"babel-core": "^6.24.1",
Expand All @@ -44,14 +45,12 @@
"chai": "^4.1.2",
"chai-files": "^1.2.0",
"ember-cli": "~3.0.0-beta.2",
"ember-cli-changelog": "^0.3.4",
"ember-cli-dependency-checker": "^2.0.0",
"ember-cli-eslint": "^4.2.1",
"ember-cli-htmlbars": "^2.0.1",
"ember-cli-htmlbars-inline-precompile": "^1.0.0",
"ember-cli-inject-live-reload": "^1.4.1",
"ember-cli-qunit": "^4.1.1",
"ember-cli-release": "^1.0.0-beta.2",
"ember-cli-shims": "^1.2.0",
"ember-cli-sri": "^2.1.0",
"ember-cli-uglify": "^2.0.0",
Expand All @@ -67,6 +66,7 @@
"eslint-plugin-ember": "^5.0.0",
"eslint-plugin-node": "^5.2.1",
"glob": "^7.1.2",
"lerna-changelog": "^0.7.0",
"loader.js": "^4.2.3",
"mocha": "^5.0.0",
"rimraf": "^2.6.2",
Expand All @@ -77,5 +77,15 @@
},
"ember-addon": {
"configPath": "tests/dummy/config"
},
"changelog": {
"repo": "kategengler/ember-cli-code-coverage",
"labels": {
"breaking": ":boom: Breaking Change",
"enhancement": ":rocket: Enhancement",
"bug": ":bug: Bug Fix",
"documentation": ":memo: Documentation",
"internal": ":house: Internal"
}
}
}
Loading