Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
codykaup committed Dec 9, 2024
1 parent 2c54854 commit dde1a8f
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 9 deletions.
1 change: 1 addition & 0 deletions .github/workflows/smoke-test-action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
secrets:
SMOKE_TESTS_CHROMATIC_PROJECT_TOKEN:
required: true
push:

permissions:
contents: read
Expand Down
10 changes: 10 additions & 0 deletions node-src/lib/getOptions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,16 @@ export default function getOptions(ctx: InitialContext): Options {
process.env.NODE_ENV !== 'test',
};

log.info(
{
default: defaultOptions.exitOnceUploaded,
config: configuration?.exitOnceUploaded,
flags: optionsFromFlags.exitOnceUploaded,
extra: extraOptions?.exitOnceUploaded,
},
'DEBUGGING'
);

if (potentialOptions.debug) {
log.setLevel('debug');
log.setInteractive(false);
Expand Down
11 changes: 2 additions & 9 deletions node-src/tasks/verify.ts
Original file line number Diff line number Diff line change
Expand Up @@ -270,15 +270,8 @@ export const verifyBuild = async (ctx: Context, task: Task) => {

transitionTo(success, true)(ctx, task);

if (
list ||
ctx.isPublishOnly ||
matchesBranch?.(
ctx.flags?.exitOnceUploaded ||
ctx.configuration?.exitOnceUploaded ||
ctx.options?.exitOnceUploaded
)
) {
if (list || ctx.isPublishOnly || matchesBranch?.(ctx.options?.exitOnceUploaded)) {
ctx.log.info('Skipping!!!');
setExitCode(ctx, exitCodes.OK);
ctx.skipSnapshots = true;
}
Expand Down

0 comments on commit dde1a8f

Please sign in to comment.