Skip to content
Permalink
Browse files

add lerna-changelog for autogeneration of changelog based on PRs from…

… last tag (#555)
  • Loading branch information...
ranyitz authored and ronami committed Aug 30, 2018
1 parent 988d12a commit 2626689dd2c10707e0ee49b5662ce8fb3fe48942
Showing with 29 additions and 4 deletions.
  1. +1 −0 .gitignore
  2. +10 −4 CONTRIBUTING.md
  3. +12 −0 lerna.json
  4. +6 −0 package.json
@@ -6,3 +6,4 @@ dist
/.vscode
.DS_Store
lerna-debug.log
.changelog
@@ -101,14 +101,20 @@ npm run create-yoshi-app:dev
It will create a project in a temp directory. You'll have a watcher that listens to changes from the template and updates the generated project accordingly.

## Release a New Version
Start by heading to the [CHANGELOG.md](https://github.com/wix/yoshi/blob/master/CHANGELOG.md) and insert the version's changes. See [commits section](https://github.com/wix/yoshi/commits/master) to verify you haven't missed anything
Start by heading to the [CHANGELOG.md](https://github.com/wix/yoshi/blob/master/CHANGELOG.md) and insert the version's changes.

To autogenerate a changelog using last tagged PR's run:

```bash
npm run changelog
```

> __Note:__ For first time you'll need to [export a GITHUB_AUTH token](https://github.com/lerna/lerna-changelog#github-token)
* New releases can be issued from branch `master`.

* `alpha`/`beta`/`rc` versions should be issued from a branch named `version_${version_name}`.

* Hotfixes for an older version should be issued form a branch named `hotfix_${version_name}`.

To create a new version use the following command:

```bash
@@ -122,7 +128,7 @@ This command will open an interactive UI for choosing the version, it will bump
Now Push the commits and tag to GitHub

```bash
git push origin master/version_*/hotfix_* --follow-tags
git push origin master/version_* --follow-tags
```

In the end of the [build](http://ci.dev.wix/viewType.html?buildTypeId=Wix_Angular_WixHaste_HastePresetYoshi) (unless there is a failure) the release should be published to npm
@@ -3,6 +3,18 @@
"packages": [
"packages/*"
],
"changelog": {
"repo": "wix/yoshi",
"cacheDir": ".changelog",
"labels": {
"PR: Breaking Change :boom:": ":boom: Breaking Change",
"PR: New Feature :rocket:": ":rocket: New Feature",
"PR: Bug Fix :bug:": ":bug: Bug Fix",
"PR: Polish :nail_care:": ":nail_care: Polish",
"PR: Docs :memo:": ":memo: Documentation",
"PR: Internal :house:": ":house: Internal"
}
},
"command": {
"publish": {
"allowBranch": [
@@ -1,5 +1,9 @@
{
"name": "yoshi-monorepo",
"repository": {
"type": "git",
"url": "git+https://github.com/wix/yoshi.git"
},
"scripts": {
"bootstrap": "lerna bootstrap",
"postinstall": "npm run bootstrap",
@@ -9,6 +13,7 @@
"test-configs": "lerna run test --concurrency 1 --scope *config*",
"test-create-yoshi-app": "npm test --prefix ./packages/create-yoshi-app",
"build": "eslint .",
"changelog": "lerna-changelog",
"create-yoshi-app:dev": "npm run dev --prefix ./packages/create-yoshi-app",
"customPublish": "node scripts/customPublish",
"createVersion": "node scripts/createVersion"
@@ -37,6 +42,7 @@
"globby": "^8.0.1",
"husky": "^1.0.0-rc.9",
"lerna": "^2.11.0",
"lerna-changelog": "^0.8.0",
"lint-staged": "^7.2.0",
"lodash": "^4.17.10",
"minimist": "^1.2.0",

0 comments on commit 2626689

Please sign in to comment.
You can’t perform that action at this time.