-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Smth reverts package.json changes after prepare
step
#1
Comments
@dhoulb, could you take a look? I seems that updated manifest deps were reverted before the publish, but package version was bumped as expected. |
@antongolub Sorry, I took a quick look at this, but it was taking too long to understand your setup and I couldn't justify any more time on it. The multi-semantic-release package was only intended as a proof of concept. I didn't consider it to be production ready — I wrote up a plan for semantic-release to allow them to support monorepos natively but I guess they don't have the time to implement it. Since I created multi-semantic-release I've changed my opinion on semantic-release and monorepos. I think the step of coordinating and inter-relating the packages is too complicated to ever work well (and would be a maintenance nightmare). As an alternative I now publish the entire repo to NPM and reference it using e.g. |
@antongolub I've thought about this a bit further and I think it's an actual issue in multi-semantic-release In the prepare step, each package writes its deps then immediately calls the prepare step for all other plugins (including the This means that when the prepare step in the git plugin is called for first package, the changes are committed even though not all packages have written their It needs reworking to so that ALL The way I would do this is adjust Unfortunately I don't have time to do this right now — but if you have a little time to fix it please do! |
@dhoulb, Hi Dave. Thanks for the feedback. We'll try to check this conjecture asap. |
@dhoulb, Dave
Anyway, it looks to be working: semrel-extra/demo-msr-cicd@834daff UPD#1 await plugins.verifyRelease(context);
nextRelease.notes = await plugins.generateNotes(context);
await plugins.prepare(context);
if (options.dryRun) { UDP#2 |
@dhoulb, Dave I'm also trying to replace But I was faced with another strange problem. The first published package release somehow completes the whole multi-sem-rel session, as like it triggers await Promise.all(packages.map((pkg) => releasePackage(pkg, createInlinePlugin, multiContext))); If you have free time, could you take a look? Here's the code: pull/2 |
It seems that |
🎉 This issue has been resolved in version 2.5.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
@antongolub Great work! |
This is not the end. It's necessary to fix |
# [1.1.0](qiwi/multi-semantic-release@v1.0.3...v1.1.0) (2019-11-03) ### Bug Fixes * **package:** add missed sem-rel plugins ([f3c9318](qiwi/multi-semantic-release@f3c9318)) * **package:** update execa to be compatible with sem-rel 15.13.28 ([069bb4e](qiwi/multi-semantic-release@069bb4e)), closes [#7](qiwi/multi-semantic-release#7) * force a release ([1e3ece5](qiwi/multi-semantic-release@1e3ece5)) ### Features * add execasync CLI flag to make execa calls be always synchronous ([693438c](qiwi/multi-semantic-release@693438c)), closes [#1](qiwi/multi-semantic-release#1)
qiwi/substrate@5e6b5d2
The text was updated successfully, but these errors were encountered: