Skip to content

Commit

Permalink
Merge pull request #2412 from miragejs/update-release-setup
Browse files Browse the repository at this point in the history
Simplify release setup and incorporate docs deploy
  • Loading branch information
SergeAstapov authored May 3, 2022
2 parents 928c851 + 262b510 commit a31d3f4
Show file tree
Hide file tree
Showing 10 changed files with 72 additions and 68 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@
/bower_components/
/node_modules/

# *.md copies from release
/packages/ember-cli-mirage/README.md
/packages/ember-cli-mirage/LICENSE.md

# misc
/.env*
/.pnp*
Expand Down
1 change: 0 additions & 1 deletion CHANGELOG.md

This file was deleted.

3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Ember CLI Mirage Change log

Releases (along with upgrade instructions) are documented on the Github [Releases](https://github.com/miragejs/ember-cli-mirage/releases) page.
1 change: 0 additions & 1 deletion LICENSE.md

This file was deleted.

9 changes: 9 additions & 0 deletions LICENSE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
The MIT License (MIT)

Copyright (c) 2016

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
1 change: 0 additions & 1 deletion README.md

This file was deleted.

46 changes: 46 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
# Ember CLI Mirage

[![Build Status](https://github.com/miragejs/ember-cli-mirage/actions/workflows/ci.yml/badge.svg)](https://github.com/miragejs/ember-cli-mirage/actions/workflows/ci.yml)
[![npm version](https://badge.fury.io/js/ember-cli-mirage.svg)](http://badge.fury.io/js/ember-cli-mirage)
[![Ember Observer Score](http://emberobserver.com/badges/ember-cli-mirage.svg)](http://emberobserver.com/addons/ember-cli-mirage)

A client-side server to develop, test and prototype your Ember CLI app.

[View the docs here.](https://www.ember-cli-mirage.com/)

----

## Compatibility

* Ember.js v3.12 or above
* Ember CLI v3.12 or above
* Node.js v14 or above

## Installation

```sh
ember install ember-cli-mirage
```

## Feature requests

Please open an issue and add a :+1: emoji reaction. We will use the number of reactions as votes to indicate community interest, which will in turn help us prioritize feature development.

You can view the most-upvoted feature requests with [this link](https://github.com/miragejs/ember-cli-mirage/issues?q=is%3Aissue+is%3Aopen+sort%3Areactions-%2B1-desc+label%3A%22Feature+%2F+Enhancement%22).

## Support

Having trouble?

- **Join #ec-mirage** on the [Ember Community Discord server](https://discord.gg/zT3asNS)
- **Open an issue**, and if possible reproduce it using the [Mirage Boilerplate Twiddle](https://ember-twiddle.com/ec3a4c625c43e7a38f3c6c0c1b8232ec?openFiles=twiddle.json%2C).

## Contributing

Have a look at our [Contributing guidelines](./CONTRIBUTING.md).

## About

This library is developed and maintained by [EmberMap](https://embermap.com/). We have a [Mirage tips and tricks](https://embermap.com/topics/mirage-tips-and-tricks) video series if you're looking to learn how to get the most out of Mirage.

Thanks to all our amazing [contributors](https://github.com/miragejs/ember-cli-mirage/graphs/contributors)!
8 changes: 2 additions & 6 deletions RELEASE.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,14 +53,10 @@ Once the prep work is completed, the actual release is straight forward:
yarn release
```

* Push the changes to GitHub and let CI publish the actual package to the registry:

```sh
git push origin --follow-tags
```

[release-it](https://github.com/release-it/release-it/) manages the actual
release process. It will prompt you to choose the version number after which
you will have the chance to hand tweak the changelog to be used (for the
`CHANGELOG.md` and GitHub release), then `release-it` continues on to tagging,
pushing the tag and commits, etc.

From there, [CI](./.github/workflows/publish.yml) will take of publishing the actual package to the npm registry.
8 changes: 7 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@
"registry": "https://registry.npmjs.org"
},
"release-it": {
"hooks": {
"before:init": "cp CHANGELOG.md LICENSE.md README.md packages/ember-cli-mirage/",
"after:release": "cd packages/ember-cli-mirage-docs && yarn deploy"
},
"plugins": {
"release-it-lerna-changelog": {
"infile": "CHANGELOG.md",
Expand All @@ -48,10 +52,12 @@
"additionalManifests": {
"dependencyUpdates": [
"package.json",
"packages/ember-cli-mirage-docs/package.json",
"test-packages/*/package.json"
],
"versionUpdates": [
"package.json"
"package.json",
"packages/ember-cli-mirage-docs/package.json"
]
}
}
Expand Down
1 change: 1 addition & 0 deletions packages/ember-cli-mirage-docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
},
"scripts": {
"build": "ember build --environment=production",
"deploy": "ember deploy production",
"lint": "npm-run-all --aggregate-output --continue-on-error --parallel \"lint:!(fix)\"",
"lint:fix": "npm-run-all --aggregate-output --continue-on-error --parallel lint:*:fix",
"lint:hbs": "ember-template-lint .",
Expand Down
3 changes: 0 additions & 3 deletions packages/ember-cli-mirage/CHANGELOG.md

This file was deleted.

9 changes: 0 additions & 9 deletions packages/ember-cli-mirage/LICENSE.md

This file was deleted.

46 changes: 0 additions & 46 deletions packages/ember-cli-mirage/README.md

This file was deleted.

0 comments on commit a31d3f4

Please sign in to comment.