Skip to content

Commit 05bcf30

Browse files
committed
Set storybookUrl action output on rebuild abort
1 parent 9dbaef7 commit 05bcf30

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

node-src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ export async function run({
139139
code: ctx.exitCode,
140140
url: ctx.build?.webUrl,
141141
buildUrl: ctx.build?.webUrl,
142-
storybookUrl: ctx.build?.storybookUrl,
142+
storybookUrl: ctx.build?.storybookUrl || ctx.storybookUrl,
143143
specCount: ctx.build?.specCount,
144144
componentCount: ctx.build?.componentCount,
145145
testCount: ctx.build?.testCount,

node-src/tasks/gitInfo.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,8 +179,8 @@ export const setGitInfo = async (ctx: Context, task: Task) => {
179179
ctx.rebuildForBuild = result.app.lastBuild;
180180
ctx.storybookUrl = result.app.lastBuild.storybookUrl;
181181
transitionTo(skippedRebuild, true)(ctx, task);
182+
setExitCode(ctx, exitCodes.OK);
182183
ctx.log.info(forceRebuildHint());
183-
ctx.exitCode = 0;
184184
return;
185185
}
186186
}

0 commit comments

Comments
 (0)