Skip to content

Commit

Permalink
chore(deps-dev): add standard-version
Browse files Browse the repository at this point in the history
  • Loading branch information
alexlafroscia committed Mar 19, 2020
1 parent f73ba25 commit 6a18d2a
Show file tree
Hide file tree
Showing 3 changed files with 745 additions and 44 deletions.
25 changes: 25 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,28 @@
* Visit the dummy application at [http://localhost:4200](http://localhost:4200).

For more information on using ember-cli, visit [https://ember-cli.com/](https://ember-cli.com/).

## Commit Formatting

Each commit should follow the [Conventional Commits](https://www.conventionalcommits.org/en/v1.0.0/) pattern, so that we can use tools that automatically generate a `CHANGELOG` for us.

## Publishing a Version

This project uses `standard-version` to leverage the Git history to find updates since the last version, determine the next version, and generate the `CHANGELOG` for us.

To create a new release, run the following:

```
yarn release --dry-run
```

And make sure that the version number and `CHANGELOG` look correct. Assuming they do, you can run

```
yarn release
git push --follow-tags origin master && npm publish
```

To push your changes to GitHub and `npm`.

Once complete, copy the recent `CHANGELOG` entry into the notes of the new release on GitHub.
6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@
"start": "ember serve",
"test": "npm-run-all lint:* test:*",
"test:ember": "ember test",
"test:ember-compatibility": "ember try:each"
"test:ember-compatibility": "ember try:each",
"release": "standard-version"
},
"dependencies": {
"ember-cli-babel": "^7.18.0"
Expand All @@ -36,8 +37,8 @@
"ember-auto-import": "^1.5.3",
"ember-cli": "~3.17.0",
"ember-cli-dependency-checker": "^3.2.0",
"ember-cli-inject-live-reload": "^2.0.2",
"ember-cli-htmlbars": "^4.2.3",
"ember-cli-inject-live-reload": "^2.0.2",
"ember-cli-sri": "^2.1.1",
"ember-cli-uglify": "^3.0.0",
"ember-data": "^3.17.0",
Expand All @@ -59,6 +60,7 @@
"npm-run-all": "^4.1.5",
"pretender": "^3.3.1",
"qunit-dom": "^1.1.0",
"standard-version": "^7.1.0",
"testdouble": "^3.13.1",
"testdouble-qunit": "^2.1.1"
},
Expand Down
Loading

0 comments on commit 6a18d2a

Please sign in to comment.