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

Commit ff1e0fe

Browse files
author
Eunjae Lee
authored
chore(release): remove afterPublish script (#3023)
1 parent ee286c1 commit ff1e0fe

File tree

1 file changed

+20
-20
lines changed

1 file changed

+20
-20
lines changed

ship.config.js

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -46,16 +46,16 @@ module.exports = {
4646
pullRequestTeamReviewers: ['instantsearch-for-websites'],
4747
buildCommand: ({ version }) =>
4848
`NODE_ENV=production VERSION=${version} yarn build`,
49-
afterPublish: async ({ exec, version }) => {
50-
await waitUntil(() => {
51-
return (
52-
exec(`npm view react-instantsearch@${version}`)
53-
.toString()
54-
.trim() !== ''
55-
);
56-
});
57-
exec('node scripts/update-examples.js');
58-
},
49+
// afterPublish: async ({ exec, version }) => {
50+
// await waitUntil(() => {
51+
// return (
52+
// exec(`npm view react-instantsearch@${version}`)
53+
// .toString()
54+
// .trim() !== ''
55+
// );
56+
// });
57+
// exec('node scripts/update-examples.js');
58+
// },
5959
slack: {
6060
// disable slack notification for `prepared` lifecycle.
6161
// Ship.js will send slack message only for `releaseSuccess`.
@@ -96,13 +96,13 @@ module.exports = {
9696
},
9797
};
9898

99-
function waitUntil(checkFn) {
100-
return new Promise(resolve => {
101-
const intervalId = setInterval(async () => {
102-
if (await checkFn()) {
103-
clearInterval(intervalId);
104-
resolve();
105-
}
106-
}, 3000);
107-
});
108-
}
99+
// function waitUntil(checkFn) {
100+
// return new Promise(resolve => {
101+
// const intervalId = setInterval(async () => {
102+
// if (await checkFn()) {
103+
// clearInterval(intervalId);
104+
// resolve();
105+
// }
106+
// }, 3000);
107+
// });
108+
// }

0 commit comments

Comments
 (0)