@expo/eas-build-job 1.0.165 → 1.0.170
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/generic.d.ts +46 -22
- package/dist/step.d.ts +28 -16
- package/dist/step.js +7 -9
- package/dist/step.js.map +1 -1
- package/dist/submission-config.d.ts +3 -0
- package/dist/submission-config.js +1 -0
- package/dist/submission-config.js.map +1 -1
- package/package.json +2 -2
package/dist/generic.d.ts
CHANGED
|
@@ -206,7 +206,10 @@ export declare namespace Generic {
|
|
|
206
206
|
}, {
|
|
207
207
|
run: z.ZodString;
|
|
208
208
|
shell: z.ZodOptional<z.ZodString>;
|
|
209
|
-
outputs: z.ZodOptional<z.ZodArray<z.ZodEffects<z.
|
|
209
|
+
outputs: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodString, {
|
|
210
|
+
name: string;
|
|
211
|
+
required: boolean;
|
|
212
|
+
}, string>, z.ZodObject<{
|
|
210
213
|
name: z.ZodString;
|
|
211
214
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
212
215
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -215,10 +218,7 @@ export declare namespace Generic {
|
|
|
215
218
|
}, {
|
|
216
219
|
name: string;
|
|
217
220
|
required?: boolean | undefined;
|
|
218
|
-
}>,
|
|
219
|
-
name: string;
|
|
220
|
-
required?: boolean | undefined;
|
|
221
|
-
}, unknown>, "many">>;
|
|
221
|
+
}>]>, "many">>;
|
|
222
222
|
uses: z.ZodOptional<z.ZodNever>;
|
|
223
223
|
with: z.ZodOptional<z.ZodNever>;
|
|
224
224
|
}>, "strip", z.ZodTypeAny, {
|
|
@@ -231,10 +231,13 @@ export declare namespace Generic {
|
|
|
231
231
|
uses?: undefined;
|
|
232
232
|
with?: undefined;
|
|
233
233
|
shell?: string | undefined;
|
|
234
|
-
outputs?: {
|
|
234
|
+
outputs?: ({
|
|
235
|
+
name: string;
|
|
236
|
+
required: boolean;
|
|
237
|
+
} | {
|
|
235
238
|
name: string;
|
|
236
239
|
required?: boolean | undefined;
|
|
237
|
-
}[] | undefined;
|
|
240
|
+
})[] | undefined;
|
|
238
241
|
}, {
|
|
239
242
|
run: string;
|
|
240
243
|
id?: string | undefined;
|
|
@@ -245,7 +248,10 @@ export declare namespace Generic {
|
|
|
245
248
|
uses?: undefined;
|
|
246
249
|
with?: undefined;
|
|
247
250
|
shell?: string | undefined;
|
|
248
|
-
outputs?:
|
|
251
|
+
outputs?: (string | {
|
|
252
|
+
name: string;
|
|
253
|
+
required?: boolean | undefined;
|
|
254
|
+
})[] | undefined;
|
|
249
255
|
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
250
256
|
id: z.ZodOptional<z.ZodString>;
|
|
251
257
|
if: z.ZodOptional<z.ZodString>;
|
|
@@ -304,10 +310,13 @@ export declare namespace Generic {
|
|
|
304
310
|
uses?: undefined;
|
|
305
311
|
with?: undefined;
|
|
306
312
|
shell?: string | undefined;
|
|
307
|
-
outputs?: {
|
|
313
|
+
outputs?: ({
|
|
314
|
+
name: string;
|
|
315
|
+
required: boolean;
|
|
316
|
+
} | {
|
|
308
317
|
name: string;
|
|
309
318
|
required?: boolean | undefined;
|
|
310
|
-
}[] | undefined;
|
|
319
|
+
})[] | undefined;
|
|
311
320
|
})[];
|
|
312
321
|
builderEnvironment: {
|
|
313
322
|
env: Record<string, string>;
|
|
@@ -393,7 +402,10 @@ export declare namespace Generic {
|
|
|
393
402
|
uses?: undefined;
|
|
394
403
|
with?: undefined;
|
|
395
404
|
shell?: string | undefined;
|
|
396
|
-
outputs?:
|
|
405
|
+
outputs?: (string | {
|
|
406
|
+
name: string;
|
|
407
|
+
required?: boolean | undefined;
|
|
408
|
+
})[] | undefined;
|
|
397
409
|
})[];
|
|
398
410
|
builderEnvironment: {
|
|
399
411
|
env: Record<string, string>;
|
|
@@ -662,7 +674,10 @@ export declare namespace Generic {
|
|
|
662
674
|
}, {
|
|
663
675
|
run: z.ZodString;
|
|
664
676
|
shell: z.ZodOptional<z.ZodString>;
|
|
665
|
-
outputs: z.ZodOptional<z.ZodArray<z.ZodEffects<z.
|
|
677
|
+
outputs: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodString, {
|
|
678
|
+
name: string;
|
|
679
|
+
required: boolean;
|
|
680
|
+
}, string>, z.ZodObject<{
|
|
666
681
|
name: z.ZodString;
|
|
667
682
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
668
683
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -671,10 +686,7 @@ export declare namespace Generic {
|
|
|
671
686
|
}, {
|
|
672
687
|
name: string;
|
|
673
688
|
required?: boolean | undefined;
|
|
674
|
-
}>,
|
|
675
|
-
name: string;
|
|
676
|
-
required?: boolean | undefined;
|
|
677
|
-
}, unknown>, "many">>;
|
|
689
|
+
}>]>, "many">>;
|
|
678
690
|
uses: z.ZodOptional<z.ZodNever>;
|
|
679
691
|
with: z.ZodOptional<z.ZodNever>;
|
|
680
692
|
}>, "strip", z.ZodTypeAny, {
|
|
@@ -687,10 +699,13 @@ export declare namespace Generic {
|
|
|
687
699
|
uses?: undefined;
|
|
688
700
|
with?: undefined;
|
|
689
701
|
shell?: string | undefined;
|
|
690
|
-
outputs?: {
|
|
702
|
+
outputs?: ({
|
|
703
|
+
name: string;
|
|
704
|
+
required: boolean;
|
|
705
|
+
} | {
|
|
691
706
|
name: string;
|
|
692
707
|
required?: boolean | undefined;
|
|
693
|
-
}[] | undefined;
|
|
708
|
+
})[] | undefined;
|
|
694
709
|
}, {
|
|
695
710
|
run: string;
|
|
696
711
|
id?: string | undefined;
|
|
@@ -701,7 +716,10 @@ export declare namespace Generic {
|
|
|
701
716
|
uses?: undefined;
|
|
702
717
|
with?: undefined;
|
|
703
718
|
shell?: string | undefined;
|
|
704
|
-
outputs?:
|
|
719
|
+
outputs?: (string | {
|
|
720
|
+
name: string;
|
|
721
|
+
required?: boolean | undefined;
|
|
722
|
+
})[] | undefined;
|
|
705
723
|
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
706
724
|
id: z.ZodOptional<z.ZodString>;
|
|
707
725
|
if: z.ZodOptional<z.ZodString>;
|
|
@@ -762,10 +780,13 @@ export declare namespace Generic {
|
|
|
762
780
|
uses?: undefined;
|
|
763
781
|
with?: undefined;
|
|
764
782
|
shell?: string | undefined;
|
|
765
|
-
outputs?: {
|
|
783
|
+
outputs?: ({
|
|
784
|
+
name: string;
|
|
785
|
+
required: boolean;
|
|
786
|
+
} | {
|
|
766
787
|
name: string;
|
|
767
788
|
required?: boolean | undefined;
|
|
768
|
-
}[] | undefined;
|
|
789
|
+
})[] | undefined;
|
|
769
790
|
})[] | undefined;
|
|
770
791
|
builderEnvironment?: {
|
|
771
792
|
env: Record<string, string>;
|
|
@@ -851,7 +872,10 @@ export declare namespace Generic {
|
|
|
851
872
|
uses?: undefined;
|
|
852
873
|
with?: undefined;
|
|
853
874
|
shell?: string | undefined;
|
|
854
|
-
outputs?:
|
|
875
|
+
outputs?: (string | {
|
|
876
|
+
name: string;
|
|
877
|
+
required?: boolean | undefined;
|
|
878
|
+
})[] | undefined;
|
|
855
879
|
})[] | undefined;
|
|
856
880
|
builderEnvironment?: {
|
|
857
881
|
env: Record<string, string>;
|
package/dist/step.d.ts
CHANGED
|
@@ -162,7 +162,10 @@ export declare const ShellStepZ: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
162
162
|
* required: false
|
|
163
163
|
* - name: my_optional_output_without_required
|
|
164
164
|
*/
|
|
165
|
-
outputs: z.ZodOptional<z.ZodArray<z.ZodEffects<z.
|
|
165
|
+
outputs: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodString, {
|
|
166
|
+
name: string;
|
|
167
|
+
required: boolean;
|
|
168
|
+
}, string>, z.ZodObject<{
|
|
166
169
|
name: z.ZodString;
|
|
167
170
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
168
171
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -171,10 +174,7 @@ export declare const ShellStepZ: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
171
174
|
}, {
|
|
172
175
|
name: string;
|
|
173
176
|
required?: boolean | undefined;
|
|
174
|
-
}>,
|
|
175
|
-
name: string;
|
|
176
|
-
required?: boolean | undefined;
|
|
177
|
-
}, unknown>, "many">>;
|
|
177
|
+
}>]>, "many">>;
|
|
178
178
|
uses: z.ZodOptional<z.ZodNever>;
|
|
179
179
|
with: z.ZodOptional<z.ZodNever>;
|
|
180
180
|
}>, "strip", z.ZodTypeAny, {
|
|
@@ -187,10 +187,13 @@ export declare const ShellStepZ: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
187
187
|
uses?: undefined;
|
|
188
188
|
with?: undefined;
|
|
189
189
|
shell?: string | undefined;
|
|
190
|
-
outputs?: {
|
|
190
|
+
outputs?: ({
|
|
191
|
+
name: string;
|
|
192
|
+
required: boolean;
|
|
193
|
+
} | {
|
|
191
194
|
name: string;
|
|
192
195
|
required?: boolean | undefined;
|
|
193
|
-
}[] | undefined;
|
|
196
|
+
})[] | undefined;
|
|
194
197
|
}, {
|
|
195
198
|
run: string;
|
|
196
199
|
id?: string | undefined;
|
|
@@ -201,7 +204,10 @@ export declare const ShellStepZ: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
201
204
|
uses?: undefined;
|
|
202
205
|
with?: undefined;
|
|
203
206
|
shell?: string | undefined;
|
|
204
|
-
outputs?:
|
|
207
|
+
outputs?: (string | {
|
|
208
|
+
name: string;
|
|
209
|
+
required?: boolean | undefined;
|
|
210
|
+
})[] | undefined;
|
|
205
211
|
}>;
|
|
206
212
|
export type ShellStep = z.infer<typeof ShellStepZ>;
|
|
207
213
|
export declare const StepZ: z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
|
|
@@ -276,7 +282,10 @@ export declare const StepZ: z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
|
|
|
276
282
|
* required: false
|
|
277
283
|
* - name: my_optional_output_without_required
|
|
278
284
|
*/
|
|
279
|
-
outputs: z.ZodOptional<z.ZodArray<z.ZodEffects<z.
|
|
285
|
+
outputs: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodString, {
|
|
286
|
+
name: string;
|
|
287
|
+
required: boolean;
|
|
288
|
+
}, string>, z.ZodObject<{
|
|
280
289
|
name: z.ZodString;
|
|
281
290
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
282
291
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -285,10 +294,7 @@ export declare const StepZ: z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
|
|
|
285
294
|
}, {
|
|
286
295
|
name: string;
|
|
287
296
|
required?: boolean | undefined;
|
|
288
|
-
}>,
|
|
289
|
-
name: string;
|
|
290
|
-
required?: boolean | undefined;
|
|
291
|
-
}, unknown>, "many">>;
|
|
297
|
+
}>]>, "many">>;
|
|
292
298
|
uses: z.ZodOptional<z.ZodNever>;
|
|
293
299
|
with: z.ZodOptional<z.ZodNever>;
|
|
294
300
|
}>, "strip", z.ZodTypeAny, {
|
|
@@ -301,10 +307,13 @@ export declare const StepZ: z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
|
|
|
301
307
|
uses?: undefined;
|
|
302
308
|
with?: undefined;
|
|
303
309
|
shell?: string | undefined;
|
|
304
|
-
outputs?: {
|
|
310
|
+
outputs?: ({
|
|
311
|
+
name: string;
|
|
312
|
+
required: boolean;
|
|
313
|
+
} | {
|
|
305
314
|
name: string;
|
|
306
315
|
required?: boolean | undefined;
|
|
307
|
-
}[] | undefined;
|
|
316
|
+
})[] | undefined;
|
|
308
317
|
}, {
|
|
309
318
|
run: string;
|
|
310
319
|
id?: string | undefined;
|
|
@@ -315,7 +324,10 @@ export declare const StepZ: z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
|
|
|
315
324
|
uses?: undefined;
|
|
316
325
|
with?: undefined;
|
|
317
326
|
shell?: string | undefined;
|
|
318
|
-
outputs?:
|
|
327
|
+
outputs?: (string | {
|
|
328
|
+
name: string;
|
|
329
|
+
required?: boolean | undefined;
|
|
330
|
+
})[] | undefined;
|
|
319
331
|
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
320
332
|
/**
|
|
321
333
|
* Unique identifier for the step.
|
package/dist/step.js
CHANGED
|
@@ -117,16 +117,14 @@ exports.ShellStepZ = CommonStepZ.extend({
|
|
|
117
117
|
* - name: my_optional_output_without_required
|
|
118
118
|
*/
|
|
119
119
|
outputs: zod_1.z
|
|
120
|
-
.array(zod_1.z.
|
|
120
|
+
.array(zod_1.z.union([
|
|
121
121
|
// We allow a shorthand for outputs
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
required: zod_1.z.boolean().optional(),
|
|
129
|
-
})))
|
|
122
|
+
zod_1.z.string().transform((name) => ({ name, required: false })),
|
|
123
|
+
zod_1.z.object({
|
|
124
|
+
name: zod_1.z.string(),
|
|
125
|
+
required: zod_1.z.boolean().optional(),
|
|
126
|
+
}),
|
|
127
|
+
]))
|
|
130
128
|
.optional(),
|
|
131
129
|
uses: zod_1.z.never().optional(),
|
|
132
130
|
with: zod_1.z.never().optional(),
|
package/dist/step.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"step.js","sourceRoot":"","sources":["../src/step.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAExB,MAAM,WAAW,GAAG,OAAC,CAAC,MAAM,CAAC;IAC3B;;;;;OAKG;IACH,EAAE,EAAE,OAAC;SACF,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CACP,oLAAoL,CACrL;IACH;;;OAGG;IACH,EAAE,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,yDAAyD,CAAC;IAC7F;;;;;OAKG;IACH,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QA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","sourcesContent":["import { z } from 'zod';\n\nconst CommonStepZ = z.object({\n /**\n * Unique identifier for the step.\n *\n * @example\n * id: step1\n */\n id: z\n .string()\n .optional()\n .describe(\n `ID of the step. Useful for later referencing the job's outputs. Example: step with id \"setup\" and an output \"platform\" will expose its value under \"steps.setup.outputs.platform\".`\n ),\n /**\n * Expression that determines whether the step should run.\n * Based on the GitHub Actions job step `if` field (https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsif).\n */\n if: z.string().optional().describe('Expression that determines whether the step should run.'),\n /**\n * The name of the step.\n *\n * @example\n * name: 'Step 1'\n */\n name: z.string().optional().describe('Name of the step.'),\n /**\n * The working directory to run the step in.\n *\n * @example\n * working_directory: ./my-working-directory\n *\n * @default depends on the project settings\n */\n working_directory: z\n .string()\n .optional()\n .describe(\n `Working directory to run the step in. Relative paths like \"./assets\" or \"assets\" are resolved from the app's base directory. Absolute paths like \"/apps/mobile\" are resolved from the repository root.`\n ),\n /**\n * Env variables override for the step.\n *\n * @example\n * env:\n * MY_ENV_VAR: my-value\n * ANOTHER_ENV_VAR: another-value\n */\n env: z\n .record(z.string())\n .optional()\n .describe('Additional environment variables to set for the step.'),\n});\n\nexport const FunctionStepZ = CommonStepZ.extend({\n /**\n * The custom EAS function to run as a step.\n * It can be a function provided by EAS or a custom function defined by the user.\n *\n * @example\n * uses: eas/build\n *\n * @example\n * uses: my-custom-function\n */\n uses: z\n .string()\n .describe(\n 'Name of the function to use for this step. See https://docs.expo.dev/custom-builds/schema/#built-in-eas-functions for available functions.'\n ),\n /**\n * The arguments to pass to the function.\n *\n * @example\n * with:\n * arg1: value1\n * arg2: ['ala', 'ma', 'kota']\n * arg3:\n * key1: value1\n * key2:\n * - value1\n * arg4: ${{ steps.step1.outputs.test }}\n */\n with: z.record(z.unknown()).optional().describe('Inputs to the function.'),\n\n run: z.never().optional(),\n shell: z.never().optional(),\n outputs: z.never().optional(),\n});\n\nexport type FunctionStep = z.infer<typeof FunctionStepZ>;\n\nexport const ShellStepZ = CommonStepZ.extend({\n /**\n * The command-line programs to run as a step.\n *\n * @example\n * run: echo Hello, world!\n *\n * @example\n * run: |\n * npm install\n * npx expo prebuild\n * pod install\n */\n run: z.string().describe('Shell script to run in the step.'),\n /**\n * The shell to run the \"run\" command with.\n *\n * @example\n * shell: 'sh'\n *\n * @default 'bash'\n */\n shell: z.string().optional().describe('Shell to run the \"run\" command with.'),\n /**\n * The outputs of the step.\n *\n * @example\n * outputs:\n * - name: my_output\n * required: true\n * - name: my_optional_output\n * required: false\n * - name: my_optional_output_without_required\n */\n outputs: z\n .array(\n z.union([\n // We allow a shorthand for outputs\n z.string().transform((name) => ({ name, required: false })),\n z.object({\n name: z.string(),\n required: z.boolean().optional(),\n }),\n ])\n )\n .optional(),\n\n uses: z.never().optional(),\n with: z.never().optional(),\n});\n\nexport type ShellStep = z.infer<typeof ShellStepZ>;\n\nexport const StepZ = z.union([ShellStepZ, FunctionStepZ]);\n\n/**\n * Structure of a custom EAS job step.\n *\n * GHA step fields skipped here:\n * - `with.entrypoint`\n * - `continue-on-error`\n * - `timeout-minutes`\n *\n * * @example\n * steps:\n * - uses: eas/maestro-test\n * id: step1\n * name: Step 1\n * with:\n * flow_path: |\n * maestro/sign_in.yaml\n * maestro/create_post.yaml\n * maestro/sign_out.yaml\n * - run: echo Hello, world!\n */\nexport type Step = z.infer<typeof StepZ>;\n\nexport function validateSteps(maybeSteps: unknown): Step[] {\n const steps = z.array(StepZ).min(1).parse(maybeSteps);\n return steps;\n}\n\nexport function isStepShellStep(step: Step): step is ShellStep {\n return step.run !== undefined;\n}\n\nexport function isStepFunctionStep(step: Step): step is FunctionStep {\n return step.uses !== undefined;\n}\n"]}
|
|
@@ -10,12 +10,15 @@ export declare namespace SubmissionConfig {
|
|
|
10
10
|
*/
|
|
11
11
|
ascAppIdentifier: z.ZodString;
|
|
12
12
|
isVerboseFastlaneEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
13
|
+
groups: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
13
14
|
}, "strip", z.ZodTypeAny, {
|
|
14
15
|
ascAppIdentifier: string;
|
|
15
16
|
isVerboseFastlaneEnabled?: boolean | undefined;
|
|
17
|
+
groups?: string[] | undefined;
|
|
16
18
|
}, {
|
|
17
19
|
ascAppIdentifier: string;
|
|
18
20
|
isVerboseFastlaneEnabled?: boolean | undefined;
|
|
21
|
+
groups?: string[] | undefined;
|
|
19
22
|
}>, z.ZodUnion<[z.ZodObject<{
|
|
20
23
|
appleIdUsername: z.ZodString;
|
|
21
24
|
appleAppSpecificPassword: z.ZodString;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"submission-config.js","sourceRoot":"","sources":["../src/submission-config.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAExB,0DAA0D;AAC1D,IAAiB,gBAAgB,
|
|
1
|
+
{"version":3,"file":"submission-config.js","sourceRoot":"","sources":["../src/submission-config.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAExB,0DAA0D;AAC1D,IAAiB,gBAAgB,CA0EhC;AA1ED,WAAiB,gBAAgB;IAI/B,IAAiB,GAAG,CAiCnB;IAjCD,WAAiB,GAAG;QACL,WAAO,GAAG,OAAC;aACrB,MAAM,CAAC;YACN;;eAEG;YACH,gBAAgB,EAAE,OAAC,CAAC,MAAM,EAAE;YAC5B,wBAAwB,EAAE,OAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;YAChD,MAAM,EAAE,OAAC,CAAC,KAAK,CAAC,OAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;SACvC,CAAC;aACD,GAAG,CACF,OAAC,CAAC,KAAK,CAAC;YACN,OAAC,CAAC,MAAM,CAAC;gBACP,qGAAqG;gBACrG,eAAe,EAAE,OAAC,CAAC,MAAM,EAAE;gBAC3B,wBAAwB,EAAE,OAAC,CAAC,MAAM,EAAE;gBACpC,aAAa,EAAE,OAAC,CAAC,KAAK,EAAE,CA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AC,GAAG,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC;aAC7C,CAAC;YACF,OAAC,CAAC,MAAM,CAAC;gBACP,aAAa,EAAE,OAAC,CAAC,UAAU,CAAC,aAAa,CAAC,CAAC,QAAQ,EAAE;gBACrD,OAAO,EAAE,OAAC,CAAC,KAAK,EAAE,CAAC,QAAQ,EAAE;aAC9B,CAAC;SACH,CAAC,CACH,CAAC;IACN,CAAC,EAlCgB,OAAO,GAAP,wBAAO,KAAP,wBAAO,QAkCvB;AACH,CAAC,EA1EgB,gBAAgB,gCAAhB,gBAAgB,QA0EhC","sourcesContent":["import { z } from 'zod';\n\n/** Submission config as used by the submission worker. */\nexport namespace SubmissionConfig {\n export type Ios = z.infer<typeof Ios.SchemaZ>;\n export type Android = z.infer<typeof Android.SchemaZ>;\n\n export namespace Ios {\n export const SchemaZ = z\n .object({\n /**\n * App Store Connect unique App ID\n */\n ascAppIdentifier: z.string(),\n isVerboseFastlaneEnabled: z.boolean().optional(),\n groups: z.array(z.string()).optional(),\n })\n .and(\n z.union([\n z.object({\n // The `appleIdUsername` & `appleAppSpecificPassword` pair is mutually exclusive with `ascApiJsonKey`\n appleIdUsername: z.string(),\n appleAppSpecificPassword: z.string(),\n ascApiJsonKey: z.never().optional(),\n }),\n z.object({\n /**\n * ASC API JSON token example:\n * {\n * key_id: \"D383SF739\",\n * issuer_id: \"6053b7fe-68a8-4acb-89be-165aa6465141\",\n * key: \"-----BEGIN PRIVATE KEY-----\\nMIGTAgEAMBMGByqGSM\\n-----END PRIVATE KEY--\"\n * }\n */\n ascApiJsonKey: z.string(),\n appleIdUsername: z.never().optional(),\n appleAppSpecificPassword: z.never().optional(),\n }),\n ])\n );\n }\n\n export namespace Android {\n export enum ReleaseStatus {\n COMPLETED = 'completed',\n DRAFT = 'draft',\n HALTED = 'halted',\n IN_PROGRESS = 'inProgress',\n }\n\n export enum ReleaseTrack {\n PRODUCTION = 'production',\n BETA = 'beta',\n ALPHA = 'alpha',\n INTERNAL = 'internal',\n }\n\n export const SchemaZ = z\n .object({\n track: z.nativeEnum(ReleaseTrack),\n changesNotSentForReview: z.boolean().default(false),\n googleServiceAccountKeyJson: z.string(),\n isVerboseFastlaneEnabled: z.boolean().optional(),\n })\n .and(\n z.union([\n z.object({\n releaseStatus: z.literal(ReleaseStatus.IN_PROGRESS),\n rollout: z.number().gte(0).lte(1).default(1),\n }),\n z.object({\n releaseStatus: z.nativeEnum(ReleaseStatus).optional(),\n rollout: z.never().optional(),\n }),\n ])\n );\n }\n}\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@expo/eas-build-job",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.170",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -35,5 +35,5 @@
|
|
|
35
35
|
"node": "20.14.0",
|
|
36
36
|
"yarn": "1.22.21"
|
|
37
37
|
},
|
|
38
|
-
"gitHead": "
|
|
38
|
+
"gitHead": "6117d9e55e3990a340d17cba09538abd27b862ed"
|
|
39
39
|
}
|