algolia/shipjs
### [`v0.15.0`](https://togithub.com/algolia/shipjs/blob/master/CHANGELOG.md#0150httpsgithubcomalgoliashipjscomparev0142v0150-2020-02-03)
[Compare Source](https://togithub.com/algolia/shipjs/compare/v0.14.2...v0.15.0)
##### Features
- add environment variable `SHIPJS=true` ([#647](https://togithub.com/algolia/shipjs/issues/647)) ([582df3c](https://togithub.com/algolia/shipjs/commit/582df3ca459ba3b9bc692dd792552f11f937bd78))
- **prepare:** add `shouldPrepare` ([#654](https://togithub.com/algolia/shipjs/issues/654)) ([166626d](https://togithub.com/algolia/shipjs/commit/166626d2ee8c66170943f99c9212ae486bae45f0))
##### `shouldPrepare`
_default_: `undefined`
```js
// example
shouldPrepare: ({
commits,
nextVersion,
releaseType,
releaseTag,
commitNumbersPerType,
}) => { /* ... */ }
```
This is a lifecycle hook where you can decide whether or not to proceed with the preparation.
Read [the guide](https://community.algolia.com/shipjs/reference/all-config.html#shouldprepare) to learn more about the hook.
#### [0.14.2](https://togithub.com/algolia/shipjs/compare/v0.14.1...v0.14.2) (2020-01-27)
##### Bug Fixes
- add version in buildCommand hook ([#640](https://togithub.com/algolia/shipjs/issues/640)) ([420dbb9](https://togithub.com/algolia/shipjs/commit/420dbb9ef381d998a0fcb973e21828cbea6bd8a4))
#### [0.14.1](https://togithub.com/algolia/shipjs/compare/v0.14.0...v0.14.1) (2020-01-22)
##### Bug Fixes
- clean up all cases for releaseType ([#631](https://togithub.com/algolia/shipjs/issues/631)) ([89e5d73](https://togithub.com/algolia/shipjs/commit/89e5d732d0ac1d4d2a4750703c583ff82c450cfd))
- pass releaseTag to afterPublish hook ([#632](https://togithub.com/algolia/shipjs/issues/632)) ([6b5febb](https://togithub.com/algolia/shipjs/commit/6b5febb0d2ab8f6d375a4116a23a5821941271ac))
##### `releaseType`
The following shows how `releaseType` is determined.
##### normal cases
- `1.2.3` -> `2.0.0`: `major`
- `1.2.3` -> `1.3.0`: `minor`
- `1.2.3` -> `1.2.4`: `patch`
##### next version has a tag
- `1.2.3` -> `1.2.4-alpha.0`: `prerelease`
- `1.2.4-alpha.0` -> `1.2.4-alpha.1`: `prerelease`
##### version with a tag -> version without one
- `1.2.4-alpha.0` -> `1.2.4`: `patch`
- `1.2.4-alpha.0` -> `1.2.5`: `patch`
- `1.2.4-alpha.0` -> `1.3.0`: `minor`
- `1.2.4-alpha.0` -> `2.0.0`: `major`
- `1.3.0-alpha.0` -> `1.3.0`: `minor`
Just like normal cases, the new version decides the `releaseType`.
Renovate configuration
:date: Schedule: At any time (no schedule defined).
:vertical_traffic_light: Automerge: Enabled.
:recycle: Rebasing: Whenever PR becomes conflicted, or if you tick the rebase/retry checkbox below.
:no_bell: Ignore: Close this PR and you won't be reminded about this update again.
[ ] If you want to rebase/retry this PR, check this box
This PR contains the following updates:
^0.14.0
->^0.15.0
Release Notes
algolia/shipjs
### [`v0.15.0`](https://togithub.com/algolia/shipjs/blob/master/CHANGELOG.md#0150httpsgithubcomalgoliashipjscomparev0142v0150-2020-02-03) [Compare Source](https://togithub.com/algolia/shipjs/compare/v0.14.2...v0.15.0) ##### Features - add environment variable `SHIPJS=true` ([#647](https://togithub.com/algolia/shipjs/issues/647)) ([582df3c](https://togithub.com/algolia/shipjs/commit/582df3ca459ba3b9bc692dd792552f11f937bd78)) - **prepare:** add `shouldPrepare` ([#654](https://togithub.com/algolia/shipjs/issues/654)) ([166626d](https://togithub.com/algolia/shipjs/commit/166626d2ee8c66170943f99c9212ae486bae45f0)) ##### `shouldPrepare` _default_: `undefined` ```js // example shouldPrepare: ({ commits, nextVersion, releaseType, releaseTag, commitNumbersPerType, }) => { /* ... */ } ``` This is a lifecycle hook where you can decide whether or not to proceed with the preparation. Read [the guide](https://community.algolia.com/shipjs/reference/all-config.html#shouldprepare) to learn more about the hook. #### [0.14.2](https://togithub.com/algolia/shipjs/compare/v0.14.1...v0.14.2) (2020-01-27) ##### Bug Fixes - add version in buildCommand hook ([#640](https://togithub.com/algolia/shipjs/issues/640)) ([420dbb9](https://togithub.com/algolia/shipjs/commit/420dbb9ef381d998a0fcb973e21828cbea6bd8a4)) #### [0.14.1](https://togithub.com/algolia/shipjs/compare/v0.14.0...v0.14.1) (2020-01-22) ##### Bug Fixes - clean up all cases for releaseType ([#631](https://togithub.com/algolia/shipjs/issues/631)) ([89e5d73](https://togithub.com/algolia/shipjs/commit/89e5d732d0ac1d4d2a4750703c583ff82c450cfd)) - pass releaseTag to afterPublish hook ([#632](https://togithub.com/algolia/shipjs/issues/632)) ([6b5febb](https://togithub.com/algolia/shipjs/commit/6b5febb0d2ab8f6d375a4116a23a5821941271ac)) ##### `releaseType` The following shows how `releaseType` is determined. ##### normal cases - `1.2.3` -> `2.0.0`: `major` - `1.2.3` -> `1.3.0`: `minor` - `1.2.3` -> `1.2.4`: `patch` ##### next version has a tag - `1.2.3` -> `1.2.4-alpha.0`: `prerelease` - `1.2.4-alpha.0` -> `1.2.4-alpha.1`: `prerelease` ##### version with a tag -> version without one - `1.2.4-alpha.0` -> `1.2.4`: `patch` - `1.2.4-alpha.0` -> `1.2.5`: `patch` - `1.2.4-alpha.0` -> `1.3.0`: `minor` - `1.2.4-alpha.0` -> `2.0.0`: `major` - `1.3.0-alpha.0` -> `1.3.0`: `minor` Just like normal cases, the new version decides the `releaseType`.Renovate configuration
:date: Schedule: At any time (no schedule defined).
:vertical_traffic_light: Automerge: Enabled.
:recycle: Rebasing: Whenever PR becomes conflicted, or if you tick the rebase/retry checkbox below.
:no_bell: Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by WhiteSource Renovate. View repository job log here.