Skip to content

Commit

Permalink
Merge pull request #1620 from intuit/series
Browse files Browse the repository at this point in the history
make version, afterVersion, publish, and afterPublish series hooks
  • Loading branch information
hipstersmoothie committed Oct 30, 2020
2 parents a928e85 + cf97afa commit b5edf26
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions packages/core/src/auto.ts
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ export interface IAutoHooks {
]
>;
/** Version the package. This is a good opportunity to `git tag` the release also. */
version: AsyncParallelHook<
version: AsyncSeriesHook<
[
DryRunOption &
QuietOption & {
Expand All @@ -238,9 +238,9 @@ export interface IAutoHooks {
]
>;
/** Ran after the package has been versioned. */
afterVersion: AsyncParallelHook<[DryRunOption]>;
afterVersion: AsyncSeriesHook<[DryRunOption]>;
/** Publish the package to some package distributor. You must push the tags to github! */
publish: AsyncParallelHook<
publish: AsyncSeriesHook<
[
{
/** The semver bump that was applied in the version hook */
Expand Down Expand Up @@ -279,7 +279,7 @@ export interface IAutoHooks {
*/
next: AsyncSeriesWaterfallHook<[string[], NextContext]>;
/** Ran after the package has been published. */
afterPublish: AsyncParallelHook<[]>;
afterPublish: AsyncSeriesHook<[]>;
/** Ran after the package has been published. */
prCheck: AsyncSeriesHook<
[
Expand Down
8 changes: 4 additions & 4 deletions packages/core/src/utils/make-hooks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@ export const makeHooks = (): IAutoHooks => ({
getPreviousVersion: new AsyncSeriesBailHook(),
getRepository: new AsyncSeriesBailHook(),
prCheck: new AsyncSeriesBailHook(["prInformation"]),
version: new AsyncParallelHook(["version"]),
afterVersion: new AsyncParallelHook(["context"]),
publish: new AsyncParallelHook(["version"]),
afterPublish: new AsyncParallelHook(),
version: new AsyncSeriesHook(["version"]),
afterVersion: new AsyncSeriesHook(["context"]),
publish: new AsyncSeriesHook(["version"]),
afterPublish: new AsyncSeriesHook(),
canary: new AsyncSeriesBailHook(["canaryContext"]),
next: new AsyncSeriesWaterfallHook(["preReleaseVersions", "context"]),
});
Expand Down

0 comments on commit b5edf26

Please sign in to comment.