@expo/eas-build-job 1.0.182 → 1.0.186

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/common.d.ts CHANGED
@@ -223,7 +223,6 @@ export declare const StaticWorkflowInterpolationContextZ: z.ZodObject<{
223
223
  schedule?: string | undefined;
224
224
  } | undefined;
225
225
  }>>;
226
- env: z.ZodRecord<z.ZodString, z.ZodString>;
227
226
  workflow: z.ZodObject<{
228
227
  id: z.ZodString;
229
228
  name: z.ZodString;
@@ -241,7 +240,6 @@ export declare const StaticWorkflowInterpolationContextZ: z.ZodObject<{
241
240
  url: z.ZodString;
242
241
  }, z.ZodTypeAny, "passthrough">>;
243
242
  }, "strip", z.ZodTypeAny, {
244
- env: Record<string, string>;
245
243
  after: Record<string, {
246
244
  status: string;
247
245
  outputs: Record<string, string | null>;
@@ -274,7 +272,6 @@ export declare const StaticWorkflowInterpolationContextZ: z.ZodObject<{
274
272
  } | undefined;
275
273
  } | undefined;
276
274
  }, {
277
- env: Record<string, string>;
278
275
  after: Record<string, {
279
276
  status: string;
280
277
  outputs: Record<string, string | null>;
@@ -309,6 +306,7 @@ export declare const StaticWorkflowInterpolationContextZ: z.ZodObject<{
309
306
  }>;
310
307
  export type StaticWorkflowInterpolationContext = z.infer<typeof StaticWorkflowInterpolationContextZ>;
311
308
  export type DynamicInterpolationContext = {
309
+ env: Record<string, string | undefined>;
312
310
  success: () => boolean;
313
311
  failure: () => boolean;
314
312
  always: () => boolean;
package/dist/common.js CHANGED
@@ -148,7 +148,6 @@ exports.StaticWorkflowInterpolationContextZ = zod_1.z.object({
148
148
  })
149
149
  // We need to .optional() to support jobs that are not triggered by a GitHub event.
150
150
  .optional(),
151
- env: zod_1.z.record(zod_1.z.string()),
152
151
  workflow: zod_1.z
153
152
  .object({
154
153
  id: zod_1.z.string(),
@@ -159,7 +158,7 @@ exports.StaticWorkflowInterpolationContextZ = zod_1.z.object({
159
158
  .passthrough(),
160
159
  });
161
160
  exports.CustomBuildConfigSchema = joi_1.default.object().when('.mode', {
162
- is: BuildMode.CUSTOM,
161
+ is: [BuildMode.CUSTOM, BuildMode.REPACK],
163
162
  then: joi_1.default.object().when('.customBuildConfig.path', {
164
163
  is: joi_1.default.exist(),
165
164
  then: joi_1.default.object({
@@ -1 +1 @@
1
- {"version":3,"file":"common.js","sourceRoot":"","sources":["../src/common.ts"],"names":[],"mappings":";;;;;;AAAA,8CAAsB;AACtB,6BAAwB;AAGxB,iCAAuC;AAEvC,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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ACF,SAAS,EAAE,aAAG,CAAC,MAAM,CAAC;YACpB,iBAAiB,EAAE,aAAG,CAAC,GAAG,EAAE,CAAC,KAAK,EAAE;YACpC,KAAK,EAAE,aAAG,CAAC,KAAK,EAAE;iBACf,KAAK,CAAC,aAAG,CAAC,GAAG,EAAE,CAAC;iBAChB,QAAQ,EAAE;iBACV,MAAM,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,IAAA,oBAAa,EAAC,KAAK,CAAC,EAAE,kBAAkB,CAAC;YAC9D,OAAO,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,OAAO,CAAC,aAAG,CAAC,MAAM,EAAE,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;SACrE,CAAC;KACH,CAAC;IACF,SAAS,EAAE,aAAG,CAAC,MAAM,CAAC;QACpB,iBAAiB,EAAE,aAAG,CAAC,GAAG,EAAE,CAAC,KAAK,EAAE;QACpC,KAAK,EAAE,aAAG,CAAC,GAAG,EAAE,CAAC,KAAK,EAAE;QACxB,OAAO,EAAE,aAAG,CAAC,GAAG,EAAE,CAAC,KAAK,EAAE;KAC3B,CAAC;CACH,CAAC,CAAC","sourcesContent":["import Joi from 'joi';\nimport { z } from 'zod';\n\nimport { BuildPhase, BuildPhaseResult } from './logs';\nimport { validateSteps } from './step';\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 label: z.string().optional(),\n event: z\n .object({\n label: z\n .object({\n name: z.string(),\n })\n .optional(),\n schedule: z.string().optional(),\n })\n .optional(),\n schedule: z.string().optional(),\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 workflow: z\n .object({\n id: z.string(),\n name: z.string(),\n filename: z.string(),\n url: z.string().url(),\n })\n .passthrough(),\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 contains: (value: string, substring: string) => boolean;\n startsWith: (value: string, prefix: string) => boolean;\n endsWith: (value: string, suffix: string) => boolean;\n};\n\nexport type WorkflowInterpolationContext = StaticWorkflowInterpolationContext &\n DynamicInterpolationContext;\n\nexport const CustomBuildConfigSchema = Joi.object().when('.mode', {\n is: BuildMode.CUSTOM,\n then: Joi.object().when('.customBuildConfig.path', {\n is: Joi.exist(),\n then: Joi.object({\n customBuildConfig: Joi.object({\n path: Joi.string().required(),\n }).required(),\n steps: Joi.any().strip(),\n outputs: Joi.any().strip(),\n }),\n otherwise: Joi.object({\n customBuildConfig: Joi.any().strip(),\n steps: Joi.array()\n .items(Joi.any())\n .required()\n .custom((steps) => validateSteps(steps), 'steps validation'),\n outputs: Joi.object().pattern(Joi.string(), Joi.string()).required(),\n }),\n }),\n otherwise: Joi.object({\n customBuildConfig: Joi.any().strip(),\n steps: Joi.any().strip(),\n outputs: Joi.any().strip(),\n }),\n});\n"]}
1
+ {"version":3,"file":"common.js","sourceRoot":"","sources":["../src/common.ts"],"names":[],"mappings":";;;;;;AAAA,8CAAsB;AACtB,6BAAwB;AAGxB,iCAAuC;AAEvC,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,+BAA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aAAG,CAAC,GAAG,EAAE,CAAC,KAAK,EAAE;QACxB,OAAO,EAAE,aAAG,CAAC,GAAG,EAAE,CAAC,KAAK,EAAE;KAC3B,CAAC;CACH,CAAC,CAAC","sourcesContent":["import Joi from 'joi';\nimport { z } from 'zod';\n\nimport { BuildPhase, BuildPhaseResult } from './logs';\nimport { validateSteps } from './step';\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 label: z.string().optional(),\n event: z\n .object({\n label: z\n .object({\n name: z.string(),\n })\n .optional(),\n schedule: z.string().optional(),\n })\n .optional(),\n schedule: z.string().optional(),\n })\n // We need to .optional() to support jobs that are not triggered by a GitHub event.\n .optional(),\n workflow: z\n .object({\n id: z.string(),\n name: z.string(),\n filename: z.string(),\n url: z.string().url(),\n })\n .passthrough(),\n});\n\nexport type StaticWorkflowInterpolationContext = z.infer<\n typeof StaticWorkflowInterpolationContextZ\n>;\n\nexport type DynamicInterpolationContext = {\n env: Record<string, string | undefined>;\n success: () => boolean;\n failure: () => boolean;\n always: () => boolean;\n never: () => boolean;\n fromJSON: (value: string) => unknown;\n toJSON: (value: unknown) => string;\n contains: (value: string, substring: string) => boolean;\n startsWith: (value: string, prefix: string) => boolean;\n endsWith: (value: string, suffix: string) => boolean;\n};\n\nexport type WorkflowInterpolationContext = StaticWorkflowInterpolationContext &\n DynamicInterpolationContext;\n\nexport const CustomBuildConfigSchema = Joi.object().when('.mode', {\n is: [BuildMode.CUSTOM, BuildMode.REPACK],\n then: Joi.object().when('.customBuildConfig.path', {\n is: Joi.exist(),\n then: Joi.object({\n customBuildConfig: Joi.object({\n path: Joi.string().required(),\n }).required(),\n steps: Joi.any().strip(),\n outputs: Joi.any().strip(),\n }),\n otherwise: Joi.object({\n customBuildConfig: Joi.any().strip(),\n steps: Joi.array()\n .items(Joi.any())\n .required()\n .custom((steps) => validateSteps(steps), 'steps validation'),\n outputs: Joi.object().pattern(Joi.string(), Joi.string()).required(),\n }),\n }),\n otherwise: Joi.object({\n customBuildConfig: Joi.any().strip(),\n steps: Joi.any().strip(),\n outputs: Joi.any().strip(),\n }),\n});\n"]}
package/dist/context.d.ts CHANGED
@@ -1,10 +1,9 @@
1
- import { DynamicInterpolationContext, Env, StaticWorkflowInterpolationContext } from './common';
1
+ import { DynamicInterpolationContext, StaticWorkflowInterpolationContext } from './common';
2
2
  import { Job } from './job';
3
3
  import { Metadata } from './metadata';
4
4
  type StaticJobOnlyInterpolationContext = {
5
5
  job: Job;
6
6
  metadata: Metadata | null;
7
- env: Env;
8
7
  steps: Record<string, {
9
8
  outputs: Record<string, string | undefined>;
10
9
  }>;
@@ -1 +1 @@
1
- {"version":3,"file":"context.js","sourceRoot":"","sources":["../src/context.ts"],"names":[],"mappings":"","sourcesContent":["import { DynamicInterpolationContext, Env, StaticWorkflowInterpolationContext } from './common';\nimport { Job } from './job';\nimport { Metadata } from './metadata';\n\ntype StaticJobOnlyInterpolationContext = {\n job: Job;\n metadata: Metadata | null;\n env: Env;\n steps: Record<\n string,\n {\n outputs: Record<string, string | undefined>;\n }\n >;\n expoApiServerURL: string;\n};\n\nexport type StaticJobInterpolationContext =\n | (StaticWorkflowInterpolationContext & StaticJobOnlyInterpolationContext)\n | StaticJobOnlyInterpolationContext;\n\nexport type JobInterpolationContext = StaticJobInterpolationContext & DynamicInterpolationContext;\n"]}
1
+ {"version":3,"file":"context.js","sourceRoot":"","sources":["../src/context.ts"],"names":[],"mappings":"","sourcesContent":["import { DynamicInterpolationContext, StaticWorkflowInterpolationContext } from './common';\nimport { Job } from './job';\nimport { Metadata } from './metadata';\n\ntype StaticJobOnlyInterpolationContext = {\n job: Job;\n metadata: Metadata | null;\n steps: Record<\n string,\n {\n outputs: Record<string, string | undefined>;\n }\n >;\n expoApiServerURL: string;\n};\n\nexport type StaticJobInterpolationContext =\n | (StaticWorkflowInterpolationContext & StaticJobOnlyInterpolationContext)\n | StaticJobOnlyInterpolationContext;\n\nexport type JobInterpolationContext = StaticJobInterpolationContext & DynamicInterpolationContext;\n"]}
package/dist/generic.d.ts CHANGED
@@ -200,7 +200,6 @@ export declare namespace Generic {
200
200
  schedule?: string | undefined;
201
201
  } | undefined;
202
202
  }>>;
203
- env: z.ZodRecord<z.ZodString, z.ZodString>;
204
203
  workflow: z.ZodObject<{
205
204
  id: z.ZodString;
206
205
  name: z.ZodString;
@@ -218,7 +217,6 @@ export declare namespace Generic {
218
217
  url: z.ZodString;
219
218
  }, z.ZodTypeAny, "passthrough">>;
220
219
  }, "strip", z.ZodTypeAny, {
221
- env: Record<string, string>;
222
220
  after: Record<string, {
223
221
  status: string;
224
222
  outputs: Record<string, string | null>;
@@ -251,7 +249,6 @@ export declare namespace Generic {
251
249
  } | undefined;
252
250
  } | undefined;
253
251
  }, {
254
- env: Record<string, string>;
255
252
  after: Record<string, {
256
253
  status: string;
257
254
  outputs: Record<string, string | null>;
@@ -453,7 +450,6 @@ export declare namespace Generic {
453
450
  platform?: undefined;
454
451
  loggerLevel?: LoggerLevel | undefined;
455
452
  workflowInterpolationContext?: {
456
- env: Record<string, string>;
457
453
  after: Record<string, {
458
454
  status: string;
459
455
  outputs: Record<string, string | null>;
@@ -559,7 +555,6 @@ export declare namespace Generic {
559
555
  platform?: undefined;
560
556
  loggerLevel?: LoggerLevel | undefined;
561
557
  workflowInterpolationContext?: {
562
- env: Record<string, string>;
563
558
  after: Record<string, {
564
559
  status: string;
565
560
  outputs: Record<string, string | null>;
@@ -791,7 +786,6 @@ export declare namespace Generic {
791
786
  schedule?: string | undefined;
792
787
  } | undefined;
793
788
  }>>;
794
- env: z.ZodRecord<z.ZodString, z.ZodString>;
795
789
  workflow: z.ZodObject<{
796
790
  id: z.ZodString;
797
791
  name: z.ZodString;
@@ -809,7 +803,6 @@ export declare namespace Generic {
809
803
  url: z.ZodString;
810
804
  }, z.ZodTypeAny, "passthrough">>;
811
805
  }, "strip", z.ZodTypeAny, {
812
- env: Record<string, string>;
813
806
  after: Record<string, {
814
807
  status: string;
815
808
  outputs: Record<string, string | null>;
@@ -842,7 +835,6 @@ export declare namespace Generic {
842
835
  } | undefined;
843
836
  } | undefined;
844
837
  }, {
845
- env: Record<string, string>;
846
838
  after: Record<string, {
847
839
  status: string;
848
840
  outputs: Record<string, string | null>;
@@ -1043,7 +1035,6 @@ export declare namespace Generic {
1043
1035
  initiatingUserId?: string | undefined;
1044
1036
  appId?: string | undefined;
1045
1037
  workflowInterpolationContext?: {
1046
- env: Record<string, string>;
1047
1038
  after: Record<string, {
1048
1039
  status: string;
1049
1040
  outputs: Record<string, string | null>;
@@ -1149,7 +1140,6 @@ export declare namespace Generic {
1149
1140
  initiatingUserId?: string | undefined;
1150
1141
  appId?: string | undefined;
1151
1142
  workflowInterpolationContext?: {
1152
- env: Record<string, string>;
1153
1143
  after: Record<string, {
1154
1144
  status: string;
1155
1145
  outputs: Record<string, string | null>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@expo/eas-build-job",
3
- "version": "1.0.182",
3
+ "version": "1.0.186",
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": "aebfd5a70d72eee78ceb4c10d64c4d063e9efca7"
38
+ "gitHead": "ebbde005225c6dd212591e24fccead65f2c85c4e"
39
39
  }