Skip to content
This repository was archived by the owner on Dec 30, 2022. It is now read-only.

Commit c481232

Browse files
chore(release): bump all lib deps on release (#3274)
* chore(release): bump all lib deps on release sq * Fix Slack message
1 parent 8af482d commit c481232

File tree

3 files changed

+28
-36
lines changed

3 files changed

+28
-36
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@
135135
"rollup-plugin-node-resolve": "5.2.0",
136136
"rollup-plugin-replace": "2.2.0",
137137
"rollup-plugin-uglify": "6.0.3",
138-
"shipjs": "0.24.0",
138+
"shipjs": "0.24.1",
139139
"style-loader": "1.0.0",
140140
"typescript": "4.3.5",
141141
"webpack": "4.40.2",

ship.config.js

Lines changed: 18 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,20 @@
11
const fs = require('fs');
22
const path = require('path');
33

4-
const packages = [
5-
'packages/react-instantsearch-core',
6-
'packages/react-instantsearch-dom-maps',
7-
'packages/react-instantsearch-dom',
8-
'packages/react-instantsearch-hooks',
9-
'packages/react-instantsearch-hooks-server',
10-
'packages/react-instantsearch-native',
11-
'packages/react-instantsearch',
12-
];
13-
144
module.exports = {
155
monorepo: {
166
mainVersionFile: 'lerna.json',
17-
packagesToBump: packages,
18-
packagesToPublish: packages,
7+
// We rely on Lerna to bump our dependencies.
8+
packagesToBump: [],
9+
packagesToPublish: [
10+
'packages/react-instantsearch-core',
11+
'packages/react-instantsearch-dom-maps',
12+
'packages/react-instantsearch-dom',
13+
'packages/react-instantsearch-hooks',
14+
'packages/react-instantsearch-hooks-server',
15+
'packages/react-instantsearch-native',
16+
'packages/react-instantsearch',
17+
],
1918
},
2019
versionUpdated: ({ version, exec, dir }) => {
2120
// Update version in `react-instantsearch-core`
@@ -42,17 +41,9 @@ module.exports = {
4241
`export default '${version}';\n`
4342
);
4443

45-
// update version in top level package
46-
exec(`mversion ${version}`);
47-
48-
// update version in packages & dependencies
49-
exec(`lerna version ${version} --no-git-tag-version --no-push --yes`);
50-
51-
// @TODO: We can remove after initial npm release of `react-instantsearch-hooks-server`
52-
// We update the Hooks and Hooks Server package dependency in the example because Lerna doesn't
53-
// and releasing fails because the Hooks Server package has not yet been released on npm.
44+
// Update version in packages and dependencies
5445
exec(
55-
`yarn workspace hooks-ssr-example upgrade react-instantsearch-hooks-server@${version}`
46+
`yarn lerna version ${version} --exact --no-git-tag-version --no-push --yes`
5647
);
5748
},
5849
shouldPrepare: ({ releaseType, commitNumbersPerType }) => {
@@ -70,16 +61,17 @@ module.exports = {
7061
// Ship.js will send slack message only for `releaseSuccess`.
7162
prepared: null,
7263
releaseSuccess: ({
73-
appName,
7464
version,
7565
tagName,
7666
latestCommitHash,
7767
latestCommitUrl,
7868
repoURL,
7969
}) => ({
80-
pretext: [`:tada: Successfully released *${appName}@${version}*`].join(
81-
'\n'
82-
),
70+
pretext: [
71+
`:tada: Successfully released *React InstantSearch v${version}*`,
72+
'',
73+
`Make sure to run \`yarn run release-templates\` in \`create-instantsearch-app\`.`,
74+
].join('\n'),
8375
fields: [
8476
{
8577
title: 'Branch',

yarn.lock

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -25527,21 +25527,21 @@ shellwords@^0.1.1:
2552725527
resolved "https://registry.yarnpkg.com/shellwords/-/shellwords-0.1.1.tgz#d6b9181c1a48d397324c84871efbcfc73fc0654b"
2552825528
integrity sha512-vFwSUfQvqybiICwZY5+DAWIPLKsWO31Q91JSKl3UYv+K5c2QRPzn0qzec6QPu1Qc9eHYItiP3NdJqNVqetYAww==
2552925529

25530-
25531-
version "0.24.0"
25532-
resolved "https://registry.yarnpkg.com/shipjs-lib/-/shipjs-lib-0.24.0.tgz#a14ed4f23422e2ae9429ec554f65deb258a1cb46"
25533-
integrity sha512-2j3rziFNx/rJX7xXDpgQPPUUNXZBXx1S3nMA44ZJ41kbfHJx/XhYCt6V2hZVpNnpCWnZE67lziHBXx8aUKr6tQ==
25530+
25531+
version "0.24.1"
25532+
resolved "https://registry.yarnpkg.com/shipjs-lib/-/shipjs-lib-0.24.1.tgz#bf0951a0c2dd50d21e373a300e3f3c6de868c182"
25533+
integrity sha512-iQSGz80CJ+aR4fEWSjj32qNd25DwEWB0seZ+ieKFyHQuJCwi3VaRsVd3OSnFE1iotHU03azXuq+JOVqmkFzKsg==
2553425534
dependencies:
2553525535
deepmerge "^4.2.2"
2553625536
dotenv "^8.1.0"
2553725537
parse-github-url "1.0.2"
2553825538
semver "6.3.0"
2553925539
shelljs "0.8.4"
2554025540

25541-
25542-
version "0.24.0"
25543-
resolved "https://registry.yarnpkg.com/shipjs/-/shipjs-0.24.0.tgz#480211d2bb353356d33400b75bd8716caf7ae1e2"
25544-
integrity sha512-OFBQi4hnlHU2N7UU13K/nZvweJI43TLhwwC0RvQ5ZhOYtYfk5t7x7tdLrKmOzTikIuG7wrvBcQrutIXrKUdweg==
25541+
25542+
version "0.24.1"
25543+
resolved "https://registry.yarnpkg.com/shipjs/-/shipjs-0.24.1.tgz#c8149594b4bc78abd3a84f171220179cf7f23755"
25544+
integrity sha512-9VdudGeMjXIDQe3YYIdbbTUc9xqBggBnfgAoJ4Clj+cIq19ACcqDaqGfZN/e4QMzjMyWPGb8FItCpAD2SEQKKQ==
2554525545
dependencies:
2554625546
"@babel/runtime" "^7.6.3"
2554725547
"@octokit/rest" "^17.0.0"
@@ -25565,7 +25565,7 @@ [email protected]:
2556525565
prettier "^2.0.0"
2556625566
serialize-javascript "^3.0.0"
2556725567
shell-quote "^1.7.2"
25568-
shipjs-lib "0.24.0"
25568+
shipjs-lib "0.24.1"
2556925569
temp-write "4.0.0"
2557025570
tempfile "^3.0.0"
2557125571

0 commit comments

Comments
 (0)