@expo/eas-build-job 1.0.151 → 1.0.154

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/LICENSE CHANGED
@@ -12,7 +12,7 @@ Additional Use Grant: You may make use of the Licensed Work, provided that you d
12
12
  to access the functionality of and directly benefit from the
13
13
  functionality of the Licensed Work.
14
14
 
15
- Change Date: 2027-10-01
15
+ Change Date: 2027-12-05
16
16
 
17
17
  Change License: MIT
18
18
 
package/dist/common.d.ts CHANGED
@@ -146,6 +146,16 @@ export interface BuildPhaseStats {
146
146
  durationMs: number;
147
147
  }
148
148
  export declare const StaticWorkflowInterpolationContextZ: z.ZodObject<{
149
+ after: z.ZodRecord<z.ZodString, z.ZodObject<{
150
+ status: z.ZodString;
151
+ outputs: z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodString>>;
152
+ }, "strip", z.ZodTypeAny, {
153
+ status: string;
154
+ outputs: Record<string, string | null>;
155
+ }, {
156
+ status: string;
157
+ outputs: Record<string, string | null>;
158
+ }>>;
149
159
  needs: z.ZodRecord<z.ZodString, z.ZodObject<{
150
160
  status: z.ZodString;
151
161
  outputs: z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodString>>;
@@ -160,17 +170,27 @@ export declare const StaticWorkflowInterpolationContextZ: z.ZodObject<{
160
170
  event_name: z.ZodEnum<["push", "pull_request", "workflow_dispatch"]>;
161
171
  sha: z.ZodString;
162
172
  ref: z.ZodString;
173
+ ref_name: z.ZodString;
174
+ ref_type: z.ZodString;
163
175
  }, "strip", z.ZodTypeAny, {
164
176
  event_name: "push" | "pull_request" | "workflow_dispatch";
165
177
  sha: string;
166
178
  ref: string;
179
+ ref_name: string;
180
+ ref_type: string;
167
181
  }, {
168
182
  event_name: "push" | "pull_request" | "workflow_dispatch";
169
183
  sha: string;
170
184
  ref: string;
185
+ ref_name: string;
186
+ ref_type: string;
171
187
  }>>;
172
188
  env: z.ZodRecord<z.ZodString, z.ZodString>;
173
189
  }, "strip", z.ZodTypeAny, {
190
+ after: Record<string, {
191
+ status: string;
192
+ outputs: Record<string, string | null>;
193
+ }>;
174
194
  needs: Record<string, {
175
195
  status: string;
176
196
  outputs: Record<string, string | null>;
@@ -180,8 +200,14 @@ export declare const StaticWorkflowInterpolationContextZ: z.ZodObject<{
180
200
  event_name: "push" | "pull_request" | "workflow_dispatch";
181
201
  sha: string;
182
202
  ref: string;
203
+ ref_name: string;
204
+ ref_type: string;
183
205
  } | undefined;
184
206
  }, {
207
+ after: Record<string, {
208
+ status: string;
209
+ outputs: Record<string, string | null>;
210
+ }>;
185
211
  needs: Record<string, {
186
212
  status: string;
187
213
  outputs: Record<string, string | null>;
@@ -191,6 +217,8 @@ export declare const StaticWorkflowInterpolationContextZ: z.ZodObject<{
191
217
  event_name: "push" | "pull_request" | "workflow_dispatch";
192
218
  sha: string;
193
219
  ref: string;
220
+ ref_name: string;
221
+ ref_type: string;
194
222
  } | undefined;
195
223
  }>;
196
224
  export type StaticWorkflowInterpolationContext = z.infer<typeof StaticWorkflowInterpolationContextZ>;
package/dist/common.js CHANGED
@@ -117,6 +117,10 @@ exports.CacheSchema = joi_1.default.object({
117
117
  paths: joi_1.default.array().items(joi_1.default.string()).default([]),
118
118
  });
119
119
  exports.StaticWorkflowInterpolationContextZ = zod_1.z.object({
120
+ after: zod_1.z.record(zod_1.z.string(), zod_1.z.object({
121
+ status: zod_1.z.string(),
122
+ outputs: zod_1.z.record(zod_1.z.string(), zod_1.z.string().nullable()),
123
+ })),
120
124
  needs: zod_1.z.record(zod_1.z.string(), zod_1.z.object({
121
125
  status: zod_1.z.string(),
122
126
  outputs: zod_1.z.record(zod_1.z.string(), zod_1.z.string().nullable()),
@@ -126,6 +130,8 @@ exports.StaticWorkflowInterpolationContextZ = zod_1.z.object({
126
130
  event_name: zod_1.z.enum(['push', 'pull_request', 'workflow_dispatch']),
127
131
  sha: zod_1.z.string(),
128
132
  ref: zod_1.z.string(),
133
+ ref_name: zod_1.z.string(),
134
+ ref_type: zod_1.z.string(),
129
135
  })
130
136
  // We need to .optional() to support jobs that are not triggered by a GitHub event.
131
137
  .optional(),
@@ -1 +1 @@
1
- {"version":3,"file":"common.js","sourceRoot":"","sources":["../src/common.ts"],"names":[],"mappings":";;;;;;AAAA,8CAAsB;AACtB,6BAAwB;AAIxB,IAAY,SAKX;AALD,WAAY,SAAS;IACnB,4BAAe,CAAA;IACf,8BAAiB,CAAA;IACjB,8BAAiB,CAAA;IACjB,8BAAiB,CAAA;AACnB,CAAC,EALW,SAAS,yBAAT,SAAS,QAKpB;AAED,IAAY,QAIX;AAJD,WAAY,QAAQ;IAClB,+BAAmB,CAAA;IACnB,+BAAmB,CAAA;IACnB,+BAAmB,CAAA;AACrB,CAAC,EAJW,QAAQ,wBAAR,QAAQ,QAInB;AAED,IAAY,QAGX;AAHD,WAAY,QAAQ;IAClB,+BAAmB,CAAA;IACnB,uBAAW,CAAA;AACb,CAAC,EAHW,QAAQ,wBAAR,QAAQ,QAGnB;AAED,IAAY,iBAMX;AAND,WAAY,iBAAiB;IAC3B,kCAAa,CAAA;IACb,gCAAW,CAAA;IACX,kCAAa,CAAA;IACb,gCAAW,CAAA;IACX,gCAAW,CAAA;AACb,CAAC,EANW,iBAAiB,iCAAjB,iBAAiB,QAM5B;AAED,IAAY,YAGX;AAHD,WAAY,YAAY;IACtB,mCAAmB,CAAA;IACnB,+DAA+C,CAAA;AACjD,CAAC,EAHW,YAAY,4BAAZ,YAAY,QAGvB;AAsBY,QAAA,mBAAmB,GAAG,aAAG,CAAC,MAAM,CAAgB;IAC3D,IAAI,EAAE,aAAG,CAAC,MAAM,EAAE;SACf,KAAK,CAAC,GAAG,MAAM,CAAC,MAAM,CAAC,iBAAiB,CAAC,CAAC;SAC1C,QAAQ,EAAE;CACd,CAAC;KACC,IAAI,CAAC,aAAG,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,iBAAiB,CAAC,GAAG,EAAE,CAAC,CAAC,OAAO,EAAE,EAAE;IAC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AC5C,KAAK,EAAE,aAAG,CAAC,KAAK,EAAE,CAAC,KAAK,CAAC,aAAG,CAAC,MAAM,EAAE,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC;CACnD,CAAC,CAAC;AAQU,QAAA,mCAAmC,GAAG,OAAC,CAAC,MAAM,CAAC;IAC1D,KAAK,EAAE,OAAC,CAAC,MAAM,CACb,OAAC,CAAC,MAAM,EAAE,EACV,OAAC,CAAC,MAAM,CAAC;QACP,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE;QAClB,OAAO,EAAE,OAAC,CAAC,MAAM,CAAC,OAAC,CAAC,MAAM,EAAE,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC;KACrD,CAAC,CACH;IACD,MAAM,EAAE,OAAC;SACN,MAAM,CAAC;QACN,UAAU,EAAE,OAAC,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,cAAc,EAAE,mBAAmB,CAAC,CAAC;QACjE,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE;QACf,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE;KAChB,CAAC;QACF,mFAAmF;SAClF,QAAQ,EAAE;IACb,GAAG,EAAE,OAAC,CAAC,MAAM,CAAC,OAAC,CAAC,MAAM,EAAE,CAAC;CAC1B,CAAC,CAAC","sourcesContent":["import Joi from 'joi';\nimport { z } from 'zod';\n\nimport { BuildPhase, BuildPhaseResult } from './logs';\n\nexport enum BuildMode {\n BUILD = 'build',\n RESIGN = 'resign',\n CUSTOM = 'custom',\n REPACK = 'repack',\n}\n\nexport enum Workflow {\n GENERIC = 'generic',\n MANAGED = 'managed',\n UNKNOWN = 'unknown',\n}\n\nexport enum Platform {\n ANDROID = 'android',\n IOS = 'ios',\n}\n\nexport enum ArchiveSourceType {\n NONE = 'NONE',\n URL = 'URL',\n PATH = 'PATH',\n GCS = 'GCS',\n GIT = 'GIT',\n}\n\nexport enum BuildTrigger {\n EAS_CLI = 'EAS_CLI',\n GIT_BASED_INTEGRATION = 'GIT_BASED_INTEGRATION',\n}\n\nexport type ArchiveSource =\n | { type: ArchiveSourceType.NONE }\n | { type: ArchiveSourceType.GCS; bucketKey: string; metadataLocation?: string }\n | { type: ArchiveSourceType.URL; url: string }\n | { type: ArchiveSourceType.PATH; path: string }\n | {\n type: ArchiveSourceType.GIT;\n /**\n * Url that can be used to clone repository.\n * It should contain embedded credentials for private registries.\n */\n repositoryUrl: string;\n /** A Git ref - points to a branch head, tag head or a branch name. */\n gitRef: string | null;\n /**\n * Git commit hash.\n */\n gitCommitHash: string;\n };\n\nexport const ArchiveSourceSchema = Joi.object<ArchiveSource>({\n type: Joi.string()\n .valid(...Object.values(ArchiveSourceType))\n .required(),\n})\n .when(Joi.object({ type: ArchiveSourceType.GCS }).unknown(), {\n then: Joi.object({\n type: Joi.string().valid(ArchiveSourceType.GCS).required(),\n bucketKey: Joi.string().required(),\n metadataLocation: Joi.string(),\n }),\n })\n .when(Joi.object({ type: ArchiveSourceType.URL }).unknown(), {\n then: Joi.object({\n type: Joi.string().valid(ArchiveSourceType.URL).required(),\n url: Joi.string().uri().required(),\n }),\n })\n .when(Joi.object({ type: ArchiveSourceType.GIT }).unknown(), {\n then: Joi.object({\n type: Joi.string().valid(ArchiveSourceType.GIT).required(),\n repositoryUrl: Joi.string().required(),\n gitCommitHash: Joi.string().required(),\n gitRef: Joi.string().allow(null).required(),\n }),\n })\n .when(Joi.object({ type: ArchiveSourceType.PATH }).unknown(), {\n then: Joi.object({\n type: Joi.string().valid(ArchiveSourceType.PATH).required(),\n path: Joi.string().required(),\n }),\n });\n\nexport const ArchiveSourceSchemaZ = z.discriminatedUnion('type', [\n z.object({\n type: z.literal(ArchiveSourceType.GIT),\n repositoryUrl: z.string().url(),\n gitRef: z.string().nullable(),\n gitCommitHash: z.string(),\n }),\n z.object({\n type: z.literal(ArchiveSourceType.PATH),\n path: z.string(),\n }),\n z.object({\n type: z.literal(ArchiveSourceType.URL),\n url: z.string().url(),\n }),\n z.object({\n type: z.literal(ArchiveSourceType.GCS),\n bucketKey: z.string(),\n metadataLocation: z.string().optional(),\n }),\n]);\n\nexport type Env = Record<string, string>;\nexport const EnvSchema = Joi.object().pattern(Joi.string(), Joi.string());\n\nexport type EnvironmentSecret = {\n name: string;\n type: EnvironmentSecretType;\n value: string;\n};\nexport enum EnvironmentSecretType {\n STRING = 'string',\n FILE = 'file',\n}\nexport const EnvironmentSecretsSchema = Joi.array().items(\n Joi.object({\n name: Joi.string().required(),\n value: Joi.string().allow('').required(),\n type: Joi.string()\n .valid(...Object.values(EnvironmentSecretType))\n .required(),\n })\n);\nexport const EnvironmentSecretZ = z.object({\n name: z.string(),\n value: z.string(),\n type: z.nativeEnum(EnvironmentSecretType),\n});\n\nexport interface Cache {\n disabled: boolean;\n clear: boolean;\n key?: string;\n /**\n * @deprecated We don't cache anything by default anymore.\n */\n cacheDefaultPaths?: boolean;\n /**\n * @deprecated We use paths now since there is no default caching anymore.\n */\n customPaths?: string[];\n paths: string[];\n}\n\nexport const CacheSchema = Joi.object({\n disabled: Joi.boolean().default(false),\n clear: Joi.boolean().default(false),\n key: Joi.string().allow('').max(128),\n cacheDefaultPaths: Joi.boolean(),\n customPaths: Joi.array().items(Joi.string()),\n paths: Joi.array().items(Joi.string()).default([]),\n});\n\nexport interface BuildPhaseStats {\n buildPhase: BuildPhase;\n result: BuildPhaseResult;\n durationMs: number;\n}\n\nexport const StaticWorkflowInterpolationContextZ = z.object({\n needs: z.record(\n z.string(),\n z.object({\n status: z.string(),\n outputs: z.record(z.string(), z.string().nullable()),\n })\n ),\n github: z\n .object({\n event_name: z.enum(['push', 'pull_request', 'workflow_dispatch']),\n sha: z.string(),\n ref: z.string(),\n })\n // We need to .optional() to support jobs that are not triggered by a GitHub event.\n .optional(),\n env: z.record(z.string()),\n});\n\nexport type StaticWorkflowInterpolationContext = z.infer<\n typeof StaticWorkflowInterpolationContextZ\n>;\n\nexport type DynamicInterpolationContext = {\n success: () => boolean;\n failure: () => boolean;\n always: () => boolean;\n never: () => boolean;\n fromJSON: (value: string) => unknown;\n toJSON: (value: unknown) => string;\n};\n\nexport type WorkflowInterpolationContext = StaticWorkflowInterpolationContext &\n DynamicInterpolationContext;\n"]}
1
+ {"version":3,"file":"common.js","sourceRoot":"","sources":["../src/common.ts"],"names":[],"mappings":";;;;;;AAAA,8CAAsB;AACtB,6BAAwB;AAIxB,IAAY,SAKX;AALD,WAAY,SAAS;IACnB,4BAAe,CAAA;IACf,8BAAiB,CAAA;IACjB,8BAAiB,CAAA;IACjB,8BAAiB,CAAA;AACnB,CAAC,EALW,SAAS,yBAAT,SAAS,QAKpB;AAED,IAAY,QAIX;AAJD,WAAY,QAAQ;IAClB,+BAAmB,CAAA;IACnB,+BAAmB,CAAA;IACnB,+BAAmB,CAAA;AACrB,CAAC,EAJW,QAAQ,wBAAR,QAAQ,QAInB;AAED,IAAY,QAGX;AAHD,WAAY,QAAQ;IAClB,+BAAmB,CAAA;IACnB,uBAAW,CAAA;AACb,CAAC,EAHW,QAAQ,wBAAR,QAAQ,QAGnB;AAED,IAAY,iBAMX;AAND,WAAY,iBAAiB;IAC3B,kCAAa,CAAA;IACb,gCAAW,CAAA;IACX,kCAAa,CAAA;IACb,gCAAW,CAAA;IACX,gCAAW,CAAA;AACb,CAAC,EANW,iBAAiB,iCAAjB,iBAAiB,QAM5B;AAED,IAAY,YAGX;AAHD,WAAY,YAAY;IACtB,mCAAmB,CAAA;IACnB,+DAA+C,CAAA;AACjD,CAAC,EAHW,YAAY,4BAAZ,YAAY,QAGvB;AAsBY,QAAA,mBAAmB,GAAG,aAAG,CAAC,MAAM,CAAgB;IAC3D,IAAI,EAAE,aAAG,CAAC,MAAM,EAAE;SACf,KAAK,CAAC,GAAG,MAAM,CAAC,MAAM,CAAC,iBAAiB,CAAC,CAAC;SAC1C,QAAQ,EAAE;CACd,CAAC;KACC,IAAI,CAAC,aAAG,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,iBAAiB,CAAC,GAAG,EAAE,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} from 'zod';\n\nimport { BuildPhase, BuildPhaseResult } from './logs';\n\nexport enum BuildMode {\n BUILD = 'build',\n RESIGN = 'resign',\n CUSTOM = 'custom',\n REPACK = 'repack',\n}\n\nexport enum Workflow {\n GENERIC = 'generic',\n MANAGED = 'managed',\n UNKNOWN = 'unknown',\n}\n\nexport enum Platform {\n ANDROID = 'android',\n IOS = 'ios',\n}\n\nexport enum ArchiveSourceType {\n NONE = 'NONE',\n URL = 'URL',\n PATH = 'PATH',\n GCS = 'GCS',\n GIT = 'GIT',\n}\n\nexport enum BuildTrigger {\n EAS_CLI = 'EAS_CLI',\n GIT_BASED_INTEGRATION = 'GIT_BASED_INTEGRATION',\n}\n\nexport type ArchiveSource =\n | { type: ArchiveSourceType.NONE }\n | { type: ArchiveSourceType.GCS; bucketKey: string; metadataLocation?: string }\n | { type: ArchiveSourceType.URL; url: string }\n | { type: ArchiveSourceType.PATH; path: string }\n | {\n type: ArchiveSourceType.GIT;\n /**\n * Url that can be used to clone repository.\n * It should contain embedded credentials for private registries.\n */\n repositoryUrl: string;\n /** A Git ref - points to a branch head, tag head or a branch name. */\n gitRef: string | null;\n /**\n * Git commit hash.\n */\n gitCommitHash: string;\n };\n\nexport const ArchiveSourceSchema = Joi.object<ArchiveSource>({\n type: Joi.string()\n .valid(...Object.values(ArchiveSourceType))\n .required(),\n})\n .when(Joi.object({ type: ArchiveSourceType.GCS }).unknown(), {\n then: Joi.object({\n type: Joi.string().valid(ArchiveSourceType.GCS).required(),\n bucketKey: Joi.string().required(),\n metadataLocation: Joi.string(),\n }),\n })\n .when(Joi.object({ type: ArchiveSourceType.URL }).unknown(), {\n then: Joi.object({\n type: Joi.string().valid(ArchiveSourceType.URL).required(),\n url: Joi.string().uri().required(),\n }),\n })\n .when(Joi.object({ type: ArchiveSourceType.GIT }).unknown(), {\n then: Joi.object({\n type: Joi.string().valid(ArchiveSourceType.GIT).required(),\n repositoryUrl: Joi.string().required(),\n gitCommitHash: Joi.string().required(),\n gitRef: Joi.string().allow(null).required(),\n }),\n })\n .when(Joi.object({ type: ArchiveSourceType.PATH }).unknown(), {\n then: Joi.object({\n type: Joi.string().valid(ArchiveSourceType.PATH).required(),\n path: Joi.string().required(),\n }),\n });\n\nexport const ArchiveSourceSchemaZ = z.discriminatedUnion('type', [\n z.object({\n type: z.literal(ArchiveSourceType.GIT),\n repositoryUrl: z.string().url(),\n gitRef: z.string().nullable(),\n gitCommitHash: z.string(),\n }),\n z.object({\n type: z.literal(ArchiveSourceType.PATH),\n path: z.string(),\n }),\n z.object({\n type: z.literal(ArchiveSourceType.URL),\n url: z.string().url(),\n }),\n z.object({\n type: z.literal(ArchiveSourceType.GCS),\n bucketKey: z.string(),\n metadataLocation: z.string().optional(),\n }),\n]);\n\nexport type Env = Record<string, string>;\nexport const EnvSchema = Joi.object().pattern(Joi.string(), Joi.string());\n\nexport type EnvironmentSecret = {\n name: string;\n type: EnvironmentSecretType;\n value: string;\n};\nexport enum EnvironmentSecretType {\n STRING = 'string',\n FILE = 'file',\n}\nexport const EnvironmentSecretsSchema = Joi.array().items(\n Joi.object({\n name: Joi.string().required(),\n value: Joi.string().allow('').required(),\n type: Joi.string()\n .valid(...Object.values(EnvironmentSecretType))\n .required(),\n })\n);\nexport const EnvironmentSecretZ = z.object({\n name: z.string(),\n value: z.string(),\n type: z.nativeEnum(EnvironmentSecretType),\n});\n\nexport interface Cache {\n disabled: boolean;\n clear: boolean;\n key?: string;\n /**\n * @deprecated We don't cache anything by default anymore.\n */\n cacheDefaultPaths?: boolean;\n /**\n * @deprecated We use paths now since there is no default caching anymore.\n */\n customPaths?: string[];\n paths: string[];\n}\n\nexport const CacheSchema = Joi.object({\n disabled: Joi.boolean().default(false),\n clear: Joi.boolean().default(false),\n key: Joi.string().allow('').max(128),\n cacheDefaultPaths: Joi.boolean(),\n customPaths: Joi.array().items(Joi.string()),\n paths: Joi.array().items(Joi.string()).default([]),\n});\n\nexport interface BuildPhaseStats {\n buildPhase: BuildPhase;\n result: BuildPhaseResult;\n durationMs: number;\n}\n\nexport const StaticWorkflowInterpolationContextZ = z.object({\n after: z.record(\n z.string(),\n z.object({\n status: z.string(),\n outputs: z.record(z.string(), z.string().nullable()),\n })\n ),\n needs: z.record(\n z.string(),\n z.object({\n status: z.string(),\n outputs: z.record(z.string(), z.string().nullable()),\n })\n ),\n github: z\n .object({\n event_name: z.enum(['push', 'pull_request', 'workflow_dispatch']),\n sha: z.string(),\n ref: z.string(),\n ref_name: z.string(),\n ref_type: z.string(),\n })\n // We need to .optional() to support jobs that are not triggered by a GitHub event.\n .optional(),\n env: z.record(z.string()),\n});\n\nexport type StaticWorkflowInterpolationContext = z.infer<\n typeof StaticWorkflowInterpolationContextZ\n>;\n\nexport type DynamicInterpolationContext = {\n success: () => boolean;\n failure: () => boolean;\n always: () => boolean;\n never: () => boolean;\n fromJSON: (value: string) => unknown;\n toJSON: (value: unknown) => string;\n};\n\nexport type WorkflowInterpolationContext = StaticWorkflowInterpolationContext &\n DynamicInterpolationContext;\n"]}
package/dist/generic.d.ts CHANGED
@@ -120,6 +120,16 @@ export declare namespace Generic {
120
120
  triggeredBy: z.ZodLiteral<BuildTrigger.GIT_BASED_INTEGRATION>;
121
121
  loggerLevel: z.ZodOptional<z.ZodNativeEnum<typeof LoggerLevel>>;
122
122
  workflowInterpolationContext: z.ZodOptional<z.ZodObject<{
123
+ after: z.ZodRecord<z.ZodString, z.ZodObject<{
124
+ status: z.ZodString;
125
+ outputs: z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodString>>;
126
+ }, "strip", z.ZodTypeAny, {
127
+ status: string;
128
+ outputs: Record<string, string | null>;
129
+ }, {
130
+ status: string;
131
+ outputs: Record<string, string | null>;
132
+ }>>;
123
133
  needs: z.ZodRecord<z.ZodString, z.ZodObject<{
124
134
  status: z.ZodString;
125
135
  outputs: z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodString>>;
@@ -134,17 +144,27 @@ export declare namespace Generic {
134
144
  event_name: z.ZodEnum<["push", "pull_request", "workflow_dispatch"]>;
135
145
  sha: z.ZodString;
136
146
  ref: z.ZodString;
147
+ ref_name: z.ZodString;
148
+ ref_type: z.ZodString;
137
149
  }, "strip", z.ZodTypeAny, {
138
150
  event_name: "push" | "pull_request" | "workflow_dispatch";
139
151
  sha: string;
140
152
  ref: string;
153
+ ref_name: string;
154
+ ref_type: string;
141
155
  }, {
142
156
  event_name: "push" | "pull_request" | "workflow_dispatch";
143
157
  sha: string;
144
158
  ref: string;
159
+ ref_name: string;
160
+ ref_type: string;
145
161
  }>>;
146
162
  env: z.ZodRecord<z.ZodString, z.ZodString>;
147
163
  }, "strip", z.ZodTypeAny, {
164
+ after: Record<string, {
165
+ status: string;
166
+ outputs: Record<string, string | null>;
167
+ }>;
148
168
  needs: Record<string, {
149
169
  status: string;
150
170
  outputs: Record<string, string | null>;
@@ -154,8 +174,14 @@ export declare namespace Generic {
154
174
  event_name: "push" | "pull_request" | "workflow_dispatch";
155
175
  sha: string;
156
176
  ref: string;
177
+ ref_name: string;
178
+ ref_type: string;
157
179
  } | undefined;
158
180
  }, {
181
+ after: Record<string, {
182
+ status: string;
183
+ outputs: Record<string, string | null>;
184
+ }>;
159
185
  needs: Record<string, {
160
186
  status: string;
161
187
  outputs: Record<string, string | null>;
@@ -165,6 +191,8 @@ export declare namespace Generic {
165
191
  event_name: "push" | "pull_request" | "workflow_dispatch";
166
192
  sha: string;
167
193
  ref: string;
194
+ ref_name: string;
195
+ ref_type: string;
168
196
  } | undefined;
169
197
  }>>;
170
198
  initiatingUserId: z.ZodString;
@@ -228,6 +256,10 @@ export declare namespace Generic {
228
256
  platform?: undefined;
229
257
  loggerLevel?: LoggerLevel | undefined;
230
258
  workflowInterpolationContext?: {
259
+ after: Record<string, {
260
+ status: string;
261
+ outputs: Record<string, string | null>;
262
+ }>;
231
263
  needs: Record<string, {
232
264
  status: string;
233
265
  outputs: Record<string, string | null>;
@@ -237,6 +269,8 @@ export declare namespace Generic {
237
269
  event_name: "push" | "pull_request" | "workflow_dispatch";
238
270
  sha: string;
239
271
  ref: string;
272
+ ref_name: string;
273
+ ref_type: string;
240
274
  } | undefined;
241
275
  } | undefined;
242
276
  steps?: undefined;
@@ -289,6 +323,10 @@ export declare namespace Generic {
289
323
  platform?: undefined;
290
324
  loggerLevel?: LoggerLevel | undefined;
291
325
  workflowInterpolationContext?: {
326
+ after: Record<string, {
327
+ status: string;
328
+ outputs: Record<string, string | null>;
329
+ }>;
292
330
  needs: Record<string, {
293
331
  status: string;
294
332
  outputs: Record<string, string | null>;
@@ -298,6 +336,8 @@ export declare namespace Generic {
298
336
  event_name: "push" | "pull_request" | "workflow_dispatch";
299
337
  sha: string;
300
338
  ref: string;
339
+ ref_name: string;
340
+ ref_type: string;
301
341
  } | undefined;
302
342
  } | undefined;
303
343
  steps?: undefined;
@@ -418,6 +458,16 @@ export declare namespace Generic {
418
458
  triggeredBy: z.ZodLiteral<BuildTrigger.GIT_BASED_INTEGRATION>;
419
459
  loggerLevel: z.ZodOptional<z.ZodNativeEnum<typeof LoggerLevel>>;
420
460
  workflowInterpolationContext: z.ZodOptional<z.ZodObject<{
461
+ after: z.ZodRecord<z.ZodString, z.ZodObject<{
462
+ status: z.ZodString;
463
+ outputs: z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodString>>;
464
+ }, "strip", z.ZodTypeAny, {
465
+ status: string;
466
+ outputs: Record<string, string | null>;
467
+ }, {
468
+ status: string;
469
+ outputs: Record<string, string | null>;
470
+ }>>;
421
471
  needs: z.ZodRecord<z.ZodString, z.ZodObject<{
422
472
  status: z.ZodString;
423
473
  outputs: z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodString>>;
@@ -432,17 +482,27 @@ export declare namespace Generic {
432
482
  event_name: z.ZodEnum<["push", "pull_request", "workflow_dispatch"]>;
433
483
  sha: z.ZodString;
434
484
  ref: z.ZodString;
485
+ ref_name: z.ZodString;
486
+ ref_type: z.ZodString;
435
487
  }, "strip", z.ZodTypeAny, {
436
488
  event_name: "push" | "pull_request" | "workflow_dispatch";
437
489
  sha: string;
438
490
  ref: string;
491
+ ref_name: string;
492
+ ref_type: string;
439
493
  }, {
440
494
  event_name: "push" | "pull_request" | "workflow_dispatch";
441
495
  sha: string;
442
496
  ref: string;
497
+ ref_name: string;
498
+ ref_type: string;
443
499
  }>>;
444
500
  env: z.ZodRecord<z.ZodString, z.ZodString>;
445
501
  }, "strip", z.ZodTypeAny, {
502
+ after: Record<string, {
503
+ status: string;
504
+ outputs: Record<string, string | null>;
505
+ }>;
446
506
  needs: Record<string, {
447
507
  status: string;
448
508
  outputs: Record<string, string | null>;
@@ -452,8 +512,14 @@ export declare namespace Generic {
452
512
  event_name: "push" | "pull_request" | "workflow_dispatch";
453
513
  sha: string;
454
514
  ref: string;
515
+ ref_name: string;
516
+ ref_type: string;
455
517
  } | undefined;
456
518
  }, {
519
+ after: Record<string, {
520
+ status: string;
521
+ outputs: Record<string, string | null>;
522
+ }>;
457
523
  needs: Record<string, {
458
524
  status: string;
459
525
  outputs: Record<string, string | null>;
@@ -463,6 +529,8 @@ export declare namespace Generic {
463
529
  event_name: "push" | "pull_request" | "workflow_dispatch";
464
530
  sha: string;
465
531
  ref: string;
532
+ ref_name: string;
533
+ ref_type: string;
466
534
  } | undefined;
467
535
  }>>;
468
536
  initiatingUserId: z.ZodString;
@@ -627,6 +695,10 @@ export declare namespace Generic {
627
695
  customBuildConfig?: undefined;
628
696
  loggerLevel?: LoggerLevel | undefined;
629
697
  workflowInterpolationContext?: {
698
+ after: Record<string, {
699
+ status: string;
700
+ outputs: Record<string, string | null>;
701
+ }>;
630
702
  needs: Record<string, {
631
703
  status: string;
632
704
  outputs: Record<string, string | null>;
@@ -636,6 +708,8 @@ export declare namespace Generic {
636
708
  event_name: "push" | "pull_request" | "workflow_dispatch";
637
709
  sha: string;
638
710
  ref: string;
711
+ ref_name: string;
712
+ ref_type: string;
639
713
  } | undefined;
640
714
  } | undefined;
641
715
  }, {
@@ -711,6 +785,10 @@ export declare namespace Generic {
711
785
  customBuildConfig?: undefined;
712
786
  loggerLevel?: LoggerLevel | undefined;
713
787
  workflowInterpolationContext?: {
788
+ after: Record<string, {
789
+ status: string;
790
+ outputs: Record<string, string | null>;
791
+ }>;
714
792
  needs: Record<string, {
715
793
  status: string;
716
794
  outputs: Record<string, string | null>;
@@ -720,6 +798,8 @@ export declare namespace Generic {
720
798
  event_name: "push" | "pull_request" | "workflow_dispatch";
721
799
  sha: string;
722
800
  ref: string;
801
+ ref_name: string;
802
+ ref_type: string;
723
803
  } | undefined;
724
804
  } | undefined;
725
805
  }>]>;
@@ -841,6 +921,16 @@ export declare namespace Generic {
841
921
  triggeredBy: z.ZodOptional<z.ZodLiteral<BuildTrigger.GIT_BASED_INTEGRATION>>;
842
922
  loggerLevel: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof LoggerLevel>>>;
843
923
  workflowInterpolationContext: z.ZodOptional<z.ZodOptional<z.ZodObject<{
924
+ after: z.ZodRecord<z.ZodString, z.ZodObject<{
925
+ status: z.ZodString;
926
+ outputs: z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodString>>;
927
+ }, "strip", z.ZodTypeAny, {
928
+ status: string;
929
+ outputs: Record<string, string | null>;
930
+ }, {
931
+ status: string;
932
+ outputs: Record<string, string | null>;
933
+ }>>;
844
934
  needs: z.ZodRecord<z.ZodString, z.ZodObject<{
845
935
  status: z.ZodString;
846
936
  outputs: z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodString>>;
@@ -855,17 +945,27 @@ export declare namespace Generic {
855
945
  event_name: z.ZodEnum<["push", "pull_request", "workflow_dispatch"]>;
856
946
  sha: z.ZodString;
857
947
  ref: z.ZodString;
948
+ ref_name: z.ZodString;
949
+ ref_type: z.ZodString;
858
950
  }, "strip", z.ZodTypeAny, {
859
951
  event_name: "push" | "pull_request" | "workflow_dispatch";
860
952
  sha: string;
861
953
  ref: string;
954
+ ref_name: string;
955
+ ref_type: string;
862
956
  }, {
863
957
  event_name: "push" | "pull_request" | "workflow_dispatch";
864
958
  sha: string;
865
959
  ref: string;
960
+ ref_name: string;
961
+ ref_type: string;
866
962
  }>>;
867
963
  env: z.ZodRecord<z.ZodString, z.ZodString>;
868
964
  }, "strip", z.ZodTypeAny, {
965
+ after: Record<string, {
966
+ status: string;
967
+ outputs: Record<string, string | null>;
968
+ }>;
869
969
  needs: Record<string, {
870
970
  status: string;
871
971
  outputs: Record<string, string | null>;
@@ -875,8 +975,14 @@ export declare namespace Generic {
875
975
  event_name: "push" | "pull_request" | "workflow_dispatch";
876
976
  sha: string;
877
977
  ref: string;
978
+ ref_name: string;
979
+ ref_type: string;
878
980
  } | undefined;
879
981
  }, {
982
+ after: Record<string, {
983
+ status: string;
984
+ outputs: Record<string, string | null>;
985
+ }>;
880
986
  needs: Record<string, {
881
987
  status: string;
882
988
  outputs: Record<string, string | null>;
@@ -886,6 +992,8 @@ export declare namespace Generic {
886
992
  event_name: "push" | "pull_request" | "workflow_dispatch";
887
993
  sha: string;
888
994
  ref: string;
995
+ ref_name: string;
996
+ ref_type: string;
889
997
  } | undefined;
890
998
  }>>>;
891
999
  initiatingUserId: z.ZodOptional<z.ZodString>;
@@ -948,6 +1056,10 @@ export declare namespace Generic {
948
1056
  appId?: string | undefined;
949
1057
  expoDevUrl?: string | undefined;
950
1058
  workflowInterpolationContext?: {
1059
+ after: Record<string, {
1060
+ status: string;
1061
+ outputs: Record<string, string | null>;
1062
+ }>;
951
1063
  needs: Record<string, {
952
1064
  status: string;
953
1065
  outputs: Record<string, string | null>;
@@ -957,6 +1069,8 @@ export declare namespace Generic {
957
1069
  event_name: "push" | "pull_request" | "workflow_dispatch";
958
1070
  sha: string;
959
1071
  ref: string;
1072
+ ref_name: string;
1073
+ ref_type: string;
960
1074
  } | undefined;
961
1075
  } | undefined;
962
1076
  steps?: undefined;
@@ -1009,6 +1123,10 @@ export declare namespace Generic {
1009
1123
  appId?: string | undefined;
1010
1124
  expoDevUrl?: string | undefined;
1011
1125
  workflowInterpolationContext?: {
1126
+ after: Record<string, {
1127
+ status: string;
1128
+ outputs: Record<string, string | null>;
1129
+ }>;
1012
1130
  needs: Record<string, {
1013
1131
  status: string;
1014
1132
  outputs: Record<string, string | null>;
@@ -1018,6 +1136,8 @@ export declare namespace Generic {
1018
1136
  event_name: "push" | "pull_request" | "workflow_dispatch";
1019
1137
  sha: string;
1020
1138
  ref: string;
1139
+ ref_name: string;
1140
+ ref_type: string;
1021
1141
  } | undefined;
1022
1142
  } | undefined;
1023
1143
  steps?: undefined;
@@ -1138,6 +1258,16 @@ export declare namespace Generic {
1138
1258
  triggeredBy: z.ZodOptional<z.ZodLiteral<BuildTrigger.GIT_BASED_INTEGRATION>>;
1139
1259
  loggerLevel: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof LoggerLevel>>>;
1140
1260
  workflowInterpolationContext: z.ZodOptional<z.ZodOptional<z.ZodObject<{
1261
+ after: z.ZodRecord<z.ZodString, z.ZodObject<{
1262
+ status: z.ZodString;
1263
+ outputs: z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodString>>;
1264
+ }, "strip", z.ZodTypeAny, {
1265
+ status: string;
1266
+ outputs: Record<string, string | null>;
1267
+ }, {
1268
+ status: string;
1269
+ outputs: Record<string, string | null>;
1270
+ }>>;
1141
1271
  needs: z.ZodRecord<z.ZodString, z.ZodObject<{
1142
1272
  status: z.ZodString;
1143
1273
  outputs: z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodString>>;
@@ -1152,17 +1282,27 @@ export declare namespace Generic {
1152
1282
  event_name: z.ZodEnum<["push", "pull_request", "workflow_dispatch"]>;
1153
1283
  sha: z.ZodString;
1154
1284
  ref: z.ZodString;
1285
+ ref_name: z.ZodString;
1286
+ ref_type: z.ZodString;
1155
1287
  }, "strip", z.ZodTypeAny, {
1156
1288
  event_name: "push" | "pull_request" | "workflow_dispatch";
1157
1289
  sha: string;
1158
1290
  ref: string;
1291
+ ref_name: string;
1292
+ ref_type: string;
1159
1293
  }, {
1160
1294
  event_name: "push" | "pull_request" | "workflow_dispatch";
1161
1295
  sha: string;
1162
1296
  ref: string;
1297
+ ref_name: string;
1298
+ ref_type: string;
1163
1299
  }>>;
1164
1300
  env: z.ZodRecord<z.ZodString, z.ZodString>;
1165
1301
  }, "strip", z.ZodTypeAny, {
1302
+ after: Record<string, {
1303
+ status: string;
1304
+ outputs: Record<string, string | null>;
1305
+ }>;
1166
1306
  needs: Record<string, {
1167
1307
  status: string;
1168
1308
  outputs: Record<string, string | null>;
@@ -1172,8 +1312,14 @@ export declare namespace Generic {
1172
1312
  event_name: "push" | "pull_request" | "workflow_dispatch";
1173
1313
  sha: string;
1174
1314
  ref: string;
1315
+ ref_name: string;
1316
+ ref_type: string;
1175
1317
  } | undefined;
1176
1318
  }, {
1319
+ after: Record<string, {
1320
+ status: string;
1321
+ outputs: Record<string, string | null>;
1322
+ }>;
1177
1323
  needs: Record<string, {
1178
1324
  status: string;
1179
1325
  outputs: Record<string, string | null>;
@@ -1183,6 +1329,8 @@ export declare namespace Generic {
1183
1329
  event_name: "push" | "pull_request" | "workflow_dispatch";
1184
1330
  sha: string;
1185
1331
  ref: string;
1332
+ ref_name: string;
1333
+ ref_type: string;
1186
1334
  } | undefined;
1187
1335
  }>>>;
1188
1336
  initiatingUserId: z.ZodOptional<z.ZodString>;
@@ -1320,6 +1468,10 @@ export declare namespace Generic {
1320
1468
  appId?: string | undefined;
1321
1469
  expoDevUrl?: string | undefined;
1322
1470
  workflowInterpolationContext?: {
1471
+ after: Record<string, {
1472
+ status: string;
1473
+ outputs: Record<string, string | null>;
1474
+ }>;
1323
1475
  needs: Record<string, {
1324
1476
  status: string;
1325
1477
  outputs: Record<string, string | null>;
@@ -1329,6 +1481,8 @@ export declare namespace Generic {
1329
1481
  event_name: "push" | "pull_request" | "workflow_dispatch";
1330
1482
  sha: string;
1331
1483
  ref: string;
1484
+ ref_name: string;
1485
+ ref_type: string;
1332
1486
  } | undefined;
1333
1487
  } | undefined;
1334
1488
  steps?: ({
@@ -1404,6 +1558,10 @@ export declare namespace Generic {
1404
1558
  appId?: string | undefined;
1405
1559
  expoDevUrl?: string | undefined;
1406
1560
  workflowInterpolationContext?: {
1561
+ after: Record<string, {
1562
+ status: string;
1563
+ outputs: Record<string, string | null>;
1564
+ }>;
1407
1565
  needs: Record<string, {
1408
1566
  status: string;
1409
1567
  outputs: Record<string, string | null>;
@@ -1413,6 +1571,8 @@ export declare namespace Generic {
1413
1571
  event_name: "push" | "pull_request" | "workflow_dispatch";
1414
1572
  sha: string;
1415
1573
  ref: string;
1574
+ ref_name: string;
1575
+ ref_type: string;
1416
1576
  } | undefined;
1417
1577
  } | undefined;
1418
1578
  steps?: ({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@expo/eas-build-job",
3
- "version": "1.0.151",
3
+ "version": "1.0.154",
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": "e6e19b19d2037d23af2a9ec8e28128e9fcaee92e"
38
+ "gitHead": "9ff91c80ccc6cffe4461a7efd25cf6c41d655b29"
39
39
  }