Skip to content

Releases: algolia/shipjs

v0.17.0

06 Mar 15:08
0f8a248
Compare
Choose a tag to compare

0.17.0 (2020-03-06)

BREAKING CHANGE

BREAKING CHANGE

This version introduces some breaking changes.

  • In your ship.config.js, rename pullRequestReviewer to pullRequestReviewers (which accepts only an array of strings).

  • In your ship.config.js, rename pullRequestTeamReviewer to pullRequestTeamReviewers (which accepts only an array of strings).

  • releaseStart for Slack message has been removed. If you'd like to have it back, please create an issue and let's discuss.

  • The default value of testCommandBeforeRelease is now undefined. It used to be ({ isYarn }) => isYarn ? 'yarn test' : 'npm run test'. This change assumes many of you already run tests with CI services when you create pull requests. With the previous config, Ship.js unnecessarily ran tests before release. If you'd like to have it back, add some config like the following:

testCommandBeforeRelease: ({ isYarn }) => isYarn ? 'yarn test' : 'npm run test',

Bug Fixes

  • setup: do not write ship.config.js if not necessary (#705) (82f8cbc)

  • setup: fix wrong config(packagesToBump, packagesToPublish) for monorepo (#701) (0590a38)

  • clean up reviewer related configs (#707) (833d684)

  • allow @(a|b|c) syntax for packagesToBump and packagesToPublish (#702) (de9083c)

  • remove releaseStart hook for slack message (#703) (2a9502b)

  • create CHANGELOG if missing (#697) (72cb4ec)

  • empty testCommandBeforeRelease by default (#696) (34753b0)

  • shipjs-lib: exclude dependencies from final bundle (#651) (f6ec4cf)

  • check nullable value for reviewers (#709) (df7c0be)

v0.16.1

03 Mar 09:14
e1136cd
Compare
Choose a tag to compare

0.16.1 (2020-03-03)

Bug Fixes

v0.16.0

25 Feb 15:32
641fe5f
Compare
Choose a tag to compare

0.16.0 (2020-02-25)

Bug Fixes

Features

  • error: tell user where to create a GitHub token (#665) (901fcd8)

v0.15.0

03 Feb 16:14
dfef3a9
Compare
Choose a tag to compare

0.15.0 (2020-02-03)

Features

shouldPrepare

default: undefined

// 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 to learn more about the hook.

v0.14.2

27 Jan 17:16
Compare
Choose a tag to compare

0.14.2 (2020-01-27)

Bug Fixes

v0.14.1

22 Jan 13:33
1e9e527
Compare
Choose a tag to compare

0.14.1 (2020-01-22)

Bug Fixes

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.

v0.14.0

14 Jan 10:03
286ef2b
Compare
Choose a tag to compare

0.14.0 (2020-01-14)

Bug Fixes

  • release: add version in afterPublish hook (#608) (76c5591)
  • action: pin GitHub Action versions (#612) (b5e576a)
  • action: replace switch with build in checkout (#602) (ef5f8b9)
  • slack: use tag name instead of release tag (#609) (f183425)

Features

  • prepare: provide a config to assign team as reviewer (#619) (14ebf38)

v0.13.1

31 Dec 22:09
ec29939
Compare
Choose a tag to compare

0.13.1 (2019-12-31)

Bug Fixes

  • trigger: fix a bug it threw an exception at finished step (#581) (eb60e56)

v0.13.0

31 Dec 21:51
a32c8dc
Compare
Choose a tag to compare

0.13.0 (2019-12-31)

Bug Fixes

  • github-actions: fix image name (#557) (33f710c)
  • replace GH_TOKEN with GITHUB_TOKEN (#568) (835e26f)
  • prepare: throw with --yes when git tag is missing (#570) (cee5f35)

Features

  • prepare: add --commit-from option (#572) (041d3d9)
  • release: notify GitHub release url instead of CHANGELOG (#555) (c017067), closes #506

v0.12.1

24 Dec 10:06
1acc91f
Compare
Choose a tag to compare

0.12.1 (2019-12-24)

Bug Fixes

  • setup: add SLACK_INCOMING_HOOK env for all GitHub Actions (#550) (dbdd919)
  • setup: don't use escape for config serializion (#549) (59b802d)