DockYard / ember-in-viewport

Detect if an Ember View or Component is in the viewport @ 60FPS
MIT License
245 stars 91 forks source link

Set up release-it and lerna-changelog #249

Closed SergeAstapov closed 4 years ago

SergeAstapov commented 4 years ago

Closes #223.

Changes proposed in this pull request

This introduces a basic automatic release flow which will create a new release on Github as well as publish it to npm and update the CHANGELOG.md. Ideally we should use the labels recommended here https://github.com/lerna/lerna-changelog#usage for a nice changelog og Github or we can also create our custom labels.

To be able to release this from the command line you should supply a github token for both release-it and lerna-changelog. Here's the docs:

https://github.com/release-it/release-it#github-releases https://github.com/lerna/lerna-changelog#usage

The following command will start the release process yarn run release

PRs need to have one of these default labels as in the screenshot attached and they will have the icons as you can see by default. We can also create our own custom labels.

Basically mimics https://github.com/poteto/ember-changeset/pull/426 (credit to @herzzanu)