From cf97afa5252b30fde23e4e96cd550689f9b4094b Mon Sep 17 00:00:00 2001 From: Andrew Lisowski Date: Thu, 29 Oct 2020 17:33:30 -0700 Subject: [PATCH] make version, afterVersion, publish, and afterPublish series hooks --- packages/core/src/auto.ts | 8 ++++---- packages/core/src/utils/make-hooks.ts | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/packages/core/src/auto.ts b/packages/core/src/auto.ts index 03fc130c6..b0d5f986d 100644 --- a/packages/core/src/auto.ts +++ b/packages/core/src/auto.ts @@ -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 & { @@ -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 */ @@ -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< [ diff --git a/packages/core/src/utils/make-hooks.ts b/packages/core/src/utils/make-hooks.ts index 4381e9708..1c14291e0 100644 --- a/packages/core/src/utils/make-hooks.ts +++ b/packages/core/src/utils/make-hooks.ts @@ -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"]), });