diff --git a/package.json b/package.json index c443547fda..5d1b0a53b5 100644 --- a/package.json +++ b/package.json @@ -149,7 +149,7 @@ "rollup-plugin-replace": "2.2.0", "rollup-plugin-uglify": "6.0.4", "shelljs": "0.8.5", - "shipjs": "0.25.1", + "shipjs": "0.26.0", "ts-jest": "27", "typescript": "4.9.4" }, diff --git a/ship.config.js b/ship.config.js index be574115b9..2ee82960c0 100644 --- a/ship.config.js +++ b/ship.config.js @@ -1,4 +1,5 @@ const shell = require('shelljs'); +const { getChangelog } = require('shipjs/src/helper'); const packages = JSON.parse( shell.exec('yarn run --silent lerna list --toposort --json', { @@ -87,6 +88,18 @@ _This pull request is automatically generated by [Ship.js](https://github.com/al beforeCommitChanges() { shell.exec('yarn run doctoc'); }, + releases: { + extractChangelog: ({ tagName }) => { + const package = changedPackages.find( + ({ name, version }) => tagName === `${name}@${version}` + ); + if (!package) { + return ''; + } + + return getChangelog({ version: package.version, dir: package.location }); + }, + }, slack: { // disable slack notification for `prepared` lifecycle. // Ship.js will send slack message only for `releaseSuccess`. diff --git a/yarn.lock b/yarn.lock index 96fb23de44..b279400cf7 100644 --- a/yarn.lock +++ b/yarn.lock @@ -18769,25 +18769,6 @@ insert-css@^2.0.0: resolved "https://registry.yarnpkg.com/insert-css/-/insert-css-2.0.0.tgz#eb5d1097b7542f4c79ea3060d3aee07d053880f4" integrity sha1-610Ql7dUL0x56jBg067gfQU4gPQ= -instantsearch.js@4.50.3: - version "4.50.3" - resolved "https://registry.yarnpkg.com/instantsearch.js/-/instantsearch.js-4.50.3.tgz#3b810fed3b52f0b887c3ae458cd9054433872742" - integrity sha512-xfVKe7/uAzxnSJeUI2M4RQZycnggx+jtKB6ZCp10Q2FGsPn0pwf2kHO1r0oy05SFYj/UmRf6NXV6h7GjR+ctKg== - dependencies: - "@algolia/events" "^4.0.1" - "@algolia/ui-components-highlight-vdom" "^1.2.1" - "@algolia/ui-components-shared" "^1.2.1" - "@types/dom-speech-recognition" "^0.0.1" - "@types/google.maps" "^3.45.3" - "@types/hogan.js" "^3.0.0" - "@types/qs" "^6.5.3" - algoliasearch-helper "^3.11.3" - hogan.js "^3.0.2" - htm "^3.0.0" - preact "^10.10.0" - qs "^6.5.1 < 6.10" - search-insights "^2.1.0" - internal-ip@4.3.0, internal-ip@^4.3.0: version "4.3.0" resolved "https://registry.yarnpkg.com/internal-ip/-/internal-ip-4.3.0.tgz#845452baad9d2ca3b69c635a137acb9a0dad0907" @@ -28455,24 +28436,6 @@ react-inspector@^4.0.0: prop-types "^15.6.1" storybook-chromatic "^2.2.2" -react-instantsearch-hooks-server@6.39.3: - version "6.39.3" - resolved "https://registry.yarnpkg.com/react-instantsearch-hooks-server/-/react-instantsearch-hooks-server-6.39.3.tgz#60ae00eaba1da9251468dc4f20a7a56b1e5f7c62" - integrity sha512-PxoIO1+CCZW5rs0uHNkjcQe2oQZlIXf9PgMhpQZrlVqlT0lMHGpblVccXe66yOL5+56AaIguV89+xkqOFCJe5g== - dependencies: - "@babel/runtime" "^7.1.2" - instantsearch.js "4.50.3" - react-instantsearch-hooks "6.39.3" - -react-instantsearch-hooks-web@6.39.3: - version "6.39.3" - resolved "https://registry.yarnpkg.com/react-instantsearch-hooks-web/-/react-instantsearch-hooks-web-6.39.3.tgz#53df5e188e068cd3d662d57142cfded54a04419a" - integrity sha512-ik9uopKQheT8abtUWd012BMRl6OW9u9Nx0O8sduHzK+KHFLvtaXuetACEzlecc0v3nApR+oDf1GztgRNhS/UVQ== - dependencies: - "@babel/runtime" "^7.1.2" - instantsearch.js "4.50.3" - react-instantsearch-hooks "6.39.3" - react-instantsearch-hooks@6.38.3: version "6.38.3" resolved "https://registry.yarnpkg.com/react-instantsearch-hooks/-/react-instantsearch-hooks-6.38.3.tgz#07757be19871d5d088038d96674b574660c540c7" @@ -28483,16 +28446,6 @@ react-instantsearch-hooks@6.38.3: instantsearch.js "^4.49.4" use-sync-external-store "^1.0.0" -react-instantsearch-hooks@6.39.3: - version "6.39.3" - resolved "https://registry.yarnpkg.com/react-instantsearch-hooks/-/react-instantsearch-hooks-6.39.3.tgz#3253144eb3918c69079c7b31586ba0ede68bda6c" - integrity sha512-jpEsDPYYOOxac2O1TER762pYq3/HlpRO3cQZ131gZLqIIcP29l2woF19QZeHs0xzllyqDBn3OmrUSEOwYwSBSw== - dependencies: - "@babel/runtime" "^7.1.2" - algoliasearch-helper "^3.11.3" - instantsearch.js "4.50.3" - use-sync-external-store "^1.0.0" - react-is@^16.12.0, react-is@^16.13.0, react-is@^16.13.1, react-is@^16.6.0, react-is@^16.7.0, react-is@^16.8.1, react-is@^16.8.4, react-is@^16.9.0: version "16.13.1" resolved "https://registry.yarnpkg.com/react-is/-/react-is-16.13.1.tgz#789729a4dc36de2999dc156dd6c1d9c18cea56a4" @@ -30948,10 +30901,10 @@ shiki@^0.11.1: vscode-oniguruma "^1.6.1" vscode-textmate "^6.0.0" -shipjs-lib@0.25.1: - version "0.25.1" - resolved "https://registry.yarnpkg.com/shipjs-lib/-/shipjs-lib-0.25.1.tgz#584144befb58b2e7a1ef3c6f1426ef1320cf7fef" - integrity sha512-oxK+bnCTVLYl9xtDe5SnEsUi3qatqAECuMPUqkJqffmdUPkQtTIrHsxmeeblK+hCdu32cm6+JjPrYvSRTL8Zrw== +shipjs-lib@0.26.0: + version "0.26.0" + resolved "https://registry.yarnpkg.com/shipjs-lib/-/shipjs-lib-0.26.0.tgz#73a7160e58555d11e5ed5b1fdf1ad9fc9ce52a1d" + integrity sha512-Tr62CfQve6/i5jhVXT6gm/eqB2B0nlL7DE1F+8MIfDEpgesiJIqyb6f3yreNlRXYxN2DsztNamkObCvOSv2c4A== dependencies: deepmerge "^4.2.2" dotenv "^8.1.0" @@ -30959,10 +30912,10 @@ shipjs-lib@0.25.1: semver "6.3.0" shelljs "0.8.5" -shipjs@0.25.1: - version "0.25.1" - resolved "https://registry.yarnpkg.com/shipjs/-/shipjs-0.25.1.tgz#d69b7ee5d182d6dd1efa4ae227d62378d85e4202" - integrity sha512-xdZeZUH7klWaECEwrJLlIIexc9PfObz7JRwGpUgy0pCYgTKnQEFWVGzMAe1sL0PMLyWdLj9ZrBvsHNvZitBe7g== +shipjs@0.26.0: + version "0.26.0" + resolved "https://registry.yarnpkg.com/shipjs/-/shipjs-0.26.0.tgz#4184130a29024ee835707c1bd63e5d6d74fc8d16" + integrity sha512-rbPLVT3O0Wl9fMGT2siGX98Zyw0gRMTOZSx+NPqOcZlofmjGOvQekvnMAgtSS21FUOLBEOLoxNzIUVBpWm4QFg== dependencies: "@babel/runtime" "^7.6.3" "@octokit/rest" "^17.11.0" @@ -30986,7 +30939,7 @@ shipjs@0.25.1: prettier "^2.0.0" serialize-javascript "^3.0.0" shell-quote "^1.7.2" - shipjs-lib "0.25.1" + shipjs-lib "0.26.0" temp-write "4.0.0" tempfile "^3.0.0"