@expo/eas-build-job 1.0.137 → 1.0.139
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 +1 -1
- package/dist/android.d.ts +3 -0
- package/dist/android.js +2 -0
- package/dist/android.js.map +1 -1
- package/dist/common.d.ts +58 -0
- package/dist/common.js +16 -1
- package/dist/common.js.map +1 -1
- package/dist/context.d.ts +8 -2
- package/dist/context.js.map +1 -1
- package/dist/generic.d.ts +358 -46
- package/dist/generic.js +3 -0
- package/dist/generic.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js.map +1 -1
- package/dist/ios.d.ts +3 -0
- package/dist/ios.js +2 -0
- package/dist/ios.js.map +1 -1
- package/dist/step.d.ts +18 -18
- package/package.json +2 -2
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-
|
|
15
|
+
Change Date: 2027-10-01
|
|
16
16
|
|
|
17
17
|
Change License: MIT
|
|
18
18
|
|
package/dist/android.d.ts
CHANGED
package/dist/android.js
CHANGED
|
@@ -85,5 +85,7 @@ exports.JobSchema = joi_1.default.object({
|
|
|
85
85
|
submitProfile: joi_1.default.string(),
|
|
86
86
|
}),
|
|
87
87
|
loggerLevel: joi_1.default.string().valid(...Object.values(logger_1.LoggerLevel)),
|
|
88
|
+
initiatingUserId: joi_1.default.string(),
|
|
89
|
+
appId: joi_1.default.string(),
|
|
88
90
|
});
|
|
89
91
|
//# sourceMappingURL=android.js.map
|
package/dist/android.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"android.js","sourceRoot":"","sources":["../src/android.ts"],"names":[],"mappings":";;;;;;AAAA,8CAAsB;AACtB,yCAA2C;AAE3C,qCAakB;AASlB,MAAM,cAAc,GAAG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AAM,EAAE,CAAC,KAAK,CAAC,GAAG,MAAM,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC;IAC1D,QAAQ,EAAE,aAAG,CAAC,MAAM,EAAE;IAEtB,iBAAiB,EAAE,aAAG,CAAC,IAAI,CAAC,MAAM,EAAE;QAClC,EAAE,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,kBAAS,CAAC,MAAM,CAAC;QACxC,IAAI,EAAE,aAAG,CAAC,MAAM,CAAC;YACf,IAAI,EAAE,aAAG,CAAC,MAAM,EAAE;SACnB,CAAC,CAAC,QAAQ,EAAE;QACb,SAAS,EAAE,aAAG,CAAC,GAAG,EAAE,CAAC,KAAK,EAAE;KAC7B,CAAC;IAEF,YAAY,EAAE,aAAG,CAAC,MAAM,CAAC;QACvB,eAAe,EAAE,aAAG,CAAC,MAAM,EAAE;KAC9B,CAAC;IACF,YAAY,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE;IAC3C,oBAAoB,EAAE,aAAG,CAAC,MAAM,CAAC;QAC/B,UAAU,EAAE,aAAG,CAAC,OAAO,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC;QACxC,aAAa,EAAE,aAAG,CAAC,MAAM,EAAE;KAC5B,CAAC;IACF,WAAW,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,GAAG,MAAM,CAAC,MAAM,CAAC,oBAAW,CAAC,CAAC;IAE9D,gBAAgB,EAAE,aAAG,CAAC,MAAM,EAAE;IAC9B,KAAK,EAAE,aAAG,CAAC,MAAM,EAAE;CACpB,CAAC,CAAC","sourcesContent":["import Joi from 'joi';\nimport { LoggerLevel } from '@expo/logger';\n\nimport {\n ArchiveSource,\n ArchiveSourceSchema,\n Env,\n EnvSchema,\n Platform,\n Workflow,\n Cache,\n CacheSchema,\n EnvironmentSecretsSchema,\n EnvironmentSecret,\n BuildTrigger,\n BuildMode,\n} from './common';\n\nexport interface Keystore {\n dataBase64: string;\n keystorePassword: string;\n keyAlias: string;\n keyPassword?: string;\n}\n\nconst KeystoreSchema = Joi.object({\n dataBase64: Joi.string().required(),\n keystorePassword: Joi.string().allow('').required(),\n keyAlias: Joi.string().required(),\n keyPassword: Joi.string().allow(''),\n});\n\nexport enum BuildType {\n APK = 'apk',\n APP_BUNDLE = 'app-bundle',\n}\n\nexport interface BuilderEnvironment {\n image?: string;\n node?: string;\n pnpm?: string;\n yarn?: string;\n bun?: string;\n ndk?: string;\n env?: Env;\n}\n\nconst BuilderEnvironmentSchema = Joi.object({\n image: Joi.string(),\n node: Joi.string(),\n yarn: Joi.string(),\n pnpm: Joi.string(),\n bun: Joi.string(),\n ndk: Joi.string(),\n env: EnvSchema,\n});\n\nexport interface BuildSecrets {\n buildCredentials?: {\n keystore: Keystore;\n };\n environmentSecrets?: EnvironmentSecret[];\n robotAccessToken?: string;\n}\n\nexport interface Job {\n mode: BuildMode;\n type: Workflow;\n triggeredBy: BuildTrigger;\n projectArchive: ArchiveSource;\n platform: Platform.ANDROID;\n projectRootDirectory: string;\n buildProfile?: string;\n updates?: {\n channel?: string;\n };\n secrets?: BuildSecrets;\n builderEnvironment?: BuilderEnvironment;\n cache: Cache;\n developmentClient?: boolean;\n version?: {\n versionCode?: string;\n /**\n * support for this field is implemented, but specifying it is disabled on schema level\n */\n versionName?: string;\n /**\n * support for this field is implemented, but specifying it is disabled on schema level\n */\n runtimeVersion?: string;\n };\n buildArtifactPaths?: string[];\n\n gradleCommand?: string;\n applicationArchivePath?: string;\n\n buildType?: BuildType;\n username?: string;\n\n customBuildConfig?: {\n path: string;\n };\n\n experimental?: {\n prebuildCommand?: string;\n };\n expoBuildUrl?: string;\n githubTriggerOptions?: {\n autoSubmit: boolean;\n submitProfile?: string;\n };\n loggerLevel?: LoggerLevel;\n\n workflowInterpolationContext?: never;\n\n initiatingUserId?: string;\n appId?: string;\n}\n\nconst SecretsSchema = Joi.object({\n buildCredentials: Joi.object({ keystore: KeystoreSchema.required() }),\n environmentSecrets: EnvironmentSecretsSchema,\n robotAccessToken: Joi.string(),\n});\n\nexport const JobSchema = Joi.object({\n mode: Joi.string()\n .valid(BuildMode.BUILD, BuildMode.CUSTOM, BuildMode.REPACK)\n .default(BuildMode.BUILD),\n type: Joi.string()\n .valid(...Object.values(Workflow))\n .required(),\n triggeredBy: Joi.string()\n .valid(...Object.values(BuildTrigger))\n .default(BuildTrigger.EAS_CLI),\n projectArchive: ArchiveSourceSchema.required(),\n platform: Joi.string().valid(Platform.ANDROID).required(),\n projectRootDirectory: Joi.string().required(),\n buildProfile: Joi.when('triggeredBy', {\n is: BuildTrigger.GIT_BASED_INTEGRATION,\n then: Joi.string().required(),\n otherwise: Joi.string(),\n }),\n updates: Joi.object({\n channel: Joi.string(),\n }),\n secrets: Joi.when('mode', {\n is: Joi.string().valid(BuildMode.CUSTOM),\n then: SecretsSchema,\n otherwise: SecretsSchema.required(),\n }),\n builderEnvironment: BuilderEnvironmentSchema,\n cache: CacheSchema.default(),\n developmentClient: Joi.boolean(),\n version: Joi.object({\n versionCode: Joi.string().regex(/^\\d+$/),\n }),\n buildArtifactPaths: Joi.array().items(Joi.string()),\n\n gradleCommand: Joi.string(),\n applicationArchivePath: Joi.string(),\n\n buildType: Joi.string().valid(...Object.values(BuildType)),\n username: Joi.string(),\n\n customBuildConfig: Joi.when('mode', {\n is: Joi.string().valid(BuildMode.CUSTOM),\n then: Joi.object({\n path: Joi.string(),\n }).required(),\n otherwise: Joi.any().strip(),\n }),\n\n experimental: Joi.object({\n prebuildCommand: Joi.string(),\n }),\n expoBuildUrl: Joi.string().uri().optional(),\n githubTriggerOptions: Joi.object({\n autoSubmit: Joi.boolean().default(false),\n submitProfile: Joi.string(),\n }),\n loggerLevel: Joi.string().valid(...Object.values(LoggerLevel)),\n\n initiatingUserId: Joi.string(),\n appId: Joi.string(),\n});\n"]}
|
package/dist/common.d.ts
CHANGED
|
@@ -145,3 +145,61 @@ export interface BuildPhaseStats {
|
|
|
145
145
|
result: BuildPhaseResult;
|
|
146
146
|
durationMs: number;
|
|
147
147
|
}
|
|
148
|
+
export declare const StaticWorkflowInterpolationContextZ: z.ZodObject<{
|
|
149
|
+
needs: 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
|
+
}>>;
|
|
159
|
+
github: z.ZodOptional<z.ZodObject<{
|
|
160
|
+
event_name: z.ZodEnum<["push", "pull_request", "workflow_dispatch"]>;
|
|
161
|
+
sha: z.ZodString;
|
|
162
|
+
ref: z.ZodString;
|
|
163
|
+
}, "strip", z.ZodTypeAny, {
|
|
164
|
+
event_name: "push" | "pull_request" | "workflow_dispatch";
|
|
165
|
+
sha: string;
|
|
166
|
+
ref: string;
|
|
167
|
+
}, {
|
|
168
|
+
event_name: "push" | "pull_request" | "workflow_dispatch";
|
|
169
|
+
sha: string;
|
|
170
|
+
ref: string;
|
|
171
|
+
}>>;
|
|
172
|
+
env: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
173
|
+
}, "strip", z.ZodTypeAny, {
|
|
174
|
+
needs: Record<string, {
|
|
175
|
+
status: string;
|
|
176
|
+
outputs: Record<string, string | null>;
|
|
177
|
+
}>;
|
|
178
|
+
env: Record<string, string>;
|
|
179
|
+
github?: {
|
|
180
|
+
event_name: "push" | "pull_request" | "workflow_dispatch";
|
|
181
|
+
sha: string;
|
|
182
|
+
ref: string;
|
|
183
|
+
} | undefined;
|
|
184
|
+
}, {
|
|
185
|
+
needs: Record<string, {
|
|
186
|
+
status: string;
|
|
187
|
+
outputs: Record<string, string | null>;
|
|
188
|
+
}>;
|
|
189
|
+
env: Record<string, string>;
|
|
190
|
+
github?: {
|
|
191
|
+
event_name: "push" | "pull_request" | "workflow_dispatch";
|
|
192
|
+
sha: string;
|
|
193
|
+
ref: string;
|
|
194
|
+
} | undefined;
|
|
195
|
+
}>;
|
|
196
|
+
export type StaticWorkflowInterpolationContext = z.infer<typeof StaticWorkflowInterpolationContextZ>;
|
|
197
|
+
export type DynamicInterpolationContext = {
|
|
198
|
+
success: () => boolean;
|
|
199
|
+
failure: () => boolean;
|
|
200
|
+
always: () => boolean;
|
|
201
|
+
never: () => boolean;
|
|
202
|
+
fromJSON: (value: string) => unknown;
|
|
203
|
+
toJSON: (value: unknown) => string;
|
|
204
|
+
};
|
|
205
|
+
export type WorkflowInterpolationContext = StaticWorkflowInterpolationContext & DynamicInterpolationContext;
|
package/dist/common.js
CHANGED
|
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.CacheSchema = exports.EnvironmentSecretZ = exports.EnvironmentSecretsSchema = exports.EnvironmentSecretType = exports.EnvSchema = exports.ArchiveSourceSchemaZ = exports.ArchiveSourceSchema = exports.BuildTrigger = exports.ArchiveSourceType = exports.Platform = exports.Workflow = exports.BuildMode = void 0;
|
|
6
|
+
exports.StaticWorkflowInterpolationContextZ = exports.CacheSchema = exports.EnvironmentSecretZ = exports.EnvironmentSecretsSchema = exports.EnvironmentSecretType = exports.EnvSchema = exports.ArchiveSourceSchemaZ = exports.ArchiveSourceSchema = exports.BuildTrigger = exports.ArchiveSourceType = exports.Platform = exports.Workflow = exports.BuildMode = void 0;
|
|
7
7
|
const joi_1 = __importDefault(require("joi"));
|
|
8
8
|
const zod_1 = require("zod");
|
|
9
9
|
var BuildMode;
|
|
@@ -116,4 +116,19 @@ exports.CacheSchema = joi_1.default.object({
|
|
|
116
116
|
customPaths: joi_1.default.array().items(joi_1.default.string()),
|
|
117
117
|
paths: joi_1.default.array().items(joi_1.default.string()).default([]),
|
|
118
118
|
});
|
|
119
|
+
exports.StaticWorkflowInterpolationContextZ = zod_1.z.object({
|
|
120
|
+
needs: 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
|
+
})),
|
|
124
|
+
github: zod_1.z
|
|
125
|
+
.object({
|
|
126
|
+
event_name: zod_1.z.enum(['push', 'pull_request', 'workflow_dispatch']),
|
|
127
|
+
sha: zod_1.z.string(),
|
|
128
|
+
ref: zod_1.z.string(),
|
|
129
|
+
})
|
|
130
|
+
// We need to .optional() to support jobs that are not triggered by a GitHub event.
|
|
131
|
+
.optional(),
|
|
132
|
+
env: zod_1.z.record(zod_1.z.string()),
|
|
133
|
+
});
|
|
119
134
|
//# sourceMappingURL=common.js.map
|
package/dist/common.js.map
CHANGED
|
@@ -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;IAC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E,OAAC,CAAC,MAAM,EAAE;IACjB,IAAI,EAAE,OAAC,CAAC,UAAU,CAAC,qBAAqB,CAAC;CAC1C,CAAC,CAAC;AAiBU,QAAA,WAAW,GAAG,aAAG,CAAC,MAAM,CAAC;IACpC,QAAQ,EAAE,aAAG,CAAC,OAAO,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC;IACtC,KAAK,EAAE,aAAG,CAAC,OAAO,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC;IACnC,GAAG,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC;IACpC,iBAAiB,EAAE,aAAG,CAAC,OAAO,EAAE;IAChC,WAAW,EAAE,aAAG,CAAC,KAAK,EAAE,CAAC,KAAK,CAAC,aAAG,CAAC,MAAM,EAAE,CAAC;IAC5C,KAAK,EAAE,aAAG,CAAC,KAAK,EAAE,CAAC,KAAK,CAAC,aAAG,CAAC,MAAM,EAAE,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC;CACnD,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"]}
|
|
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,QAA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;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"]}
|
package/dist/context.d.ts
CHANGED
|
@@ -1,8 +1,14 @@
|
|
|
1
|
-
import { Env } from './common';
|
|
1
|
+
import { DynamicInterpolationContext, Env, 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
7
|
env: Env;
|
|
8
|
+
steps: Record<string, {
|
|
9
|
+
outputs: Record<string, string | undefined>;
|
|
10
|
+
}>;
|
|
8
11
|
};
|
|
12
|
+
export type StaticJobInterpolationContext = (StaticWorkflowInterpolationContext & StaticJobOnlyInterpolationContext) | StaticJobOnlyInterpolationContext;
|
|
13
|
+
export type JobInterpolationContext = StaticJobInterpolationContext & DynamicInterpolationContext;
|
|
14
|
+
export {};
|
package/dist/context.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"context.js","sourceRoot":"","sources":["../src/context.ts"],"names":[],"mappings":"","sourcesContent":["import { Env } from './common';\nimport { Job } from './job';\nimport { Metadata } from './metadata';\n\
|
|
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};\n\nexport type StaticJobInterpolationContext =\n | (StaticWorkflowInterpolationContext & StaticJobOnlyInterpolationContext)\n | StaticJobOnlyInterpolationContext;\n\nexport type JobInterpolationContext = StaticJobInterpolationContext & DynamicInterpolationContext;\n"]}
|
package/dist/generic.d.ts
CHANGED
|
@@ -119,6 +119,56 @@ export declare namespace Generic {
|
|
|
119
119
|
type: z.ZodOptional<z.ZodNever>;
|
|
120
120
|
triggeredBy: z.ZodLiteral<BuildTrigger.GIT_BASED_INTEGRATION>;
|
|
121
121
|
loggerLevel: z.ZodOptional<z.ZodNativeEnum<typeof LoggerLevel>>;
|
|
122
|
+
workflowInterpolationContext: z.ZodOptional<z.ZodObject<{
|
|
123
|
+
needs: 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
|
+
}>>;
|
|
133
|
+
github: z.ZodOptional<z.ZodObject<{
|
|
134
|
+
event_name: z.ZodEnum<["push", "pull_request", "workflow_dispatch"]>;
|
|
135
|
+
sha: z.ZodString;
|
|
136
|
+
ref: z.ZodString;
|
|
137
|
+
}, "strip", z.ZodTypeAny, {
|
|
138
|
+
event_name: "push" | "pull_request" | "workflow_dispatch";
|
|
139
|
+
sha: string;
|
|
140
|
+
ref: string;
|
|
141
|
+
}, {
|
|
142
|
+
event_name: "push" | "pull_request" | "workflow_dispatch";
|
|
143
|
+
sha: string;
|
|
144
|
+
ref: string;
|
|
145
|
+
}>>;
|
|
146
|
+
env: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
147
|
+
}, "strip", z.ZodTypeAny, {
|
|
148
|
+
needs: Record<string, {
|
|
149
|
+
status: string;
|
|
150
|
+
outputs: Record<string, string | null>;
|
|
151
|
+
}>;
|
|
152
|
+
env: Record<string, string>;
|
|
153
|
+
github?: {
|
|
154
|
+
event_name: "push" | "pull_request" | "workflow_dispatch";
|
|
155
|
+
sha: string;
|
|
156
|
+
ref: string;
|
|
157
|
+
} | undefined;
|
|
158
|
+
}, {
|
|
159
|
+
needs: Record<string, {
|
|
160
|
+
status: string;
|
|
161
|
+
outputs: Record<string, string | null>;
|
|
162
|
+
}>;
|
|
163
|
+
env: Record<string, string>;
|
|
164
|
+
github?: {
|
|
165
|
+
event_name: "push" | "pull_request" | "workflow_dispatch";
|
|
166
|
+
sha: string;
|
|
167
|
+
ref: string;
|
|
168
|
+
} | undefined;
|
|
169
|
+
}>>;
|
|
170
|
+
initiatingUserId: z.ZodOptional<z.ZodString>;
|
|
171
|
+
appId: z.ZodOptional<z.ZodString>;
|
|
122
172
|
}, {
|
|
123
173
|
customBuildConfig: z.ZodObject<{
|
|
124
174
|
path: z.ZodString;
|
|
@@ -172,9 +222,23 @@ export declare namespace Generic {
|
|
|
172
222
|
};
|
|
173
223
|
expoDevUrl: string;
|
|
174
224
|
type?: undefined;
|
|
225
|
+
outputs?: undefined;
|
|
175
226
|
platform?: undefined;
|
|
176
227
|
loggerLevel?: LoggerLevel | undefined;
|
|
177
|
-
|
|
228
|
+
initiatingUserId?: string | undefined;
|
|
229
|
+
appId?: string | undefined;
|
|
230
|
+
workflowInterpolationContext?: {
|
|
231
|
+
needs: Record<string, {
|
|
232
|
+
status: string;
|
|
233
|
+
outputs: Record<string, string | null>;
|
|
234
|
+
}>;
|
|
235
|
+
env: Record<string, string>;
|
|
236
|
+
github?: {
|
|
237
|
+
event_name: "push" | "pull_request" | "workflow_dispatch";
|
|
238
|
+
sha: string;
|
|
239
|
+
ref: string;
|
|
240
|
+
} | undefined;
|
|
241
|
+
} | undefined;
|
|
178
242
|
steps?: undefined;
|
|
179
243
|
}, {
|
|
180
244
|
builderEnvironment: {
|
|
@@ -219,9 +283,23 @@ export declare namespace Generic {
|
|
|
219
283
|
};
|
|
220
284
|
expoDevUrl: string;
|
|
221
285
|
type?: undefined;
|
|
286
|
+
outputs?: undefined;
|
|
222
287
|
platform?: undefined;
|
|
223
288
|
loggerLevel?: LoggerLevel | undefined;
|
|
224
|
-
|
|
289
|
+
initiatingUserId?: string | undefined;
|
|
290
|
+
appId?: string | undefined;
|
|
291
|
+
workflowInterpolationContext?: {
|
|
292
|
+
needs: Record<string, {
|
|
293
|
+
status: string;
|
|
294
|
+
outputs: Record<string, string | null>;
|
|
295
|
+
}>;
|
|
296
|
+
env: Record<string, string>;
|
|
297
|
+
github?: {
|
|
298
|
+
event_name: "push" | "pull_request" | "workflow_dispatch";
|
|
299
|
+
sha: string;
|
|
300
|
+
ref: string;
|
|
301
|
+
} | undefined;
|
|
302
|
+
} | undefined;
|
|
225
303
|
steps?: undefined;
|
|
226
304
|
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
227
305
|
projectArchive: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
@@ -339,6 +417,56 @@ export declare namespace Generic {
|
|
|
339
417
|
type: z.ZodOptional<z.ZodNever>;
|
|
340
418
|
triggeredBy: z.ZodLiteral<BuildTrigger.GIT_BASED_INTEGRATION>;
|
|
341
419
|
loggerLevel: z.ZodOptional<z.ZodNativeEnum<typeof LoggerLevel>>;
|
|
420
|
+
workflowInterpolationContext: z.ZodOptional<z.ZodObject<{
|
|
421
|
+
needs: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
422
|
+
status: z.ZodString;
|
|
423
|
+
outputs: z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodString>>;
|
|
424
|
+
}, "strip", z.ZodTypeAny, {
|
|
425
|
+
status: string;
|
|
426
|
+
outputs: Record<string, string | null>;
|
|
427
|
+
}, {
|
|
428
|
+
status: string;
|
|
429
|
+
outputs: Record<string, string | null>;
|
|
430
|
+
}>>;
|
|
431
|
+
github: z.ZodOptional<z.ZodObject<{
|
|
432
|
+
event_name: z.ZodEnum<["push", "pull_request", "workflow_dispatch"]>;
|
|
433
|
+
sha: z.ZodString;
|
|
434
|
+
ref: z.ZodString;
|
|
435
|
+
}, "strip", z.ZodTypeAny, {
|
|
436
|
+
event_name: "push" | "pull_request" | "workflow_dispatch";
|
|
437
|
+
sha: string;
|
|
438
|
+
ref: string;
|
|
439
|
+
}, {
|
|
440
|
+
event_name: "push" | "pull_request" | "workflow_dispatch";
|
|
441
|
+
sha: string;
|
|
442
|
+
ref: string;
|
|
443
|
+
}>>;
|
|
444
|
+
env: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
445
|
+
}, "strip", z.ZodTypeAny, {
|
|
446
|
+
needs: Record<string, {
|
|
447
|
+
status: string;
|
|
448
|
+
outputs: Record<string, string | null>;
|
|
449
|
+
}>;
|
|
450
|
+
env: Record<string, string>;
|
|
451
|
+
github?: {
|
|
452
|
+
event_name: "push" | "pull_request" | "workflow_dispatch";
|
|
453
|
+
sha: string;
|
|
454
|
+
ref: string;
|
|
455
|
+
} | undefined;
|
|
456
|
+
}, {
|
|
457
|
+
needs: Record<string, {
|
|
458
|
+
status: string;
|
|
459
|
+
outputs: Record<string, string | null>;
|
|
460
|
+
}>;
|
|
461
|
+
env: Record<string, string>;
|
|
462
|
+
github?: {
|
|
463
|
+
event_name: "push" | "pull_request" | "workflow_dispatch";
|
|
464
|
+
sha: string;
|
|
465
|
+
ref: string;
|
|
466
|
+
} | undefined;
|
|
467
|
+
}>>;
|
|
468
|
+
initiatingUserId: z.ZodOptional<z.ZodString>;
|
|
469
|
+
appId: z.ZodOptional<z.ZodString>;
|
|
342
470
|
}, {
|
|
343
471
|
customBuildConfig: z.ZodOptional<z.ZodNever>;
|
|
344
472
|
steps: z.ZodArray<z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
|
|
@@ -365,6 +493,10 @@ export declare namespace Generic {
|
|
|
365
493
|
}>, "strip", z.ZodTypeAny, {
|
|
366
494
|
run: string;
|
|
367
495
|
name?: string | undefined;
|
|
496
|
+
outputs?: {
|
|
497
|
+
name: string;
|
|
498
|
+
required?: boolean | undefined;
|
|
499
|
+
}[] | undefined;
|
|
368
500
|
env?: Record<string, string> | undefined;
|
|
369
501
|
id?: string | undefined;
|
|
370
502
|
if?: string | undefined;
|
|
@@ -372,13 +504,13 @@ export declare namespace Generic {
|
|
|
372
504
|
uses?: undefined;
|
|
373
505
|
with?: undefined;
|
|
374
506
|
shell?: string | undefined;
|
|
507
|
+
}, {
|
|
508
|
+
run: string;
|
|
509
|
+
name?: string | undefined;
|
|
375
510
|
outputs?: {
|
|
376
511
|
name: string;
|
|
377
512
|
required?: boolean | undefined;
|
|
378
513
|
}[] | undefined;
|
|
379
|
-
}, {
|
|
380
|
-
run: string;
|
|
381
|
-
name?: string | undefined;
|
|
382
514
|
env?: Record<string, string> | undefined;
|
|
383
515
|
id?: string | undefined;
|
|
384
516
|
if?: string | undefined;
|
|
@@ -386,10 +518,6 @@ export declare namespace Generic {
|
|
|
386
518
|
uses?: undefined;
|
|
387
519
|
with?: undefined;
|
|
388
520
|
shell?: string | undefined;
|
|
389
|
-
outputs?: {
|
|
390
|
-
name: string;
|
|
391
|
-
required?: boolean | undefined;
|
|
392
|
-
}[] | undefined;
|
|
393
521
|
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
394
522
|
id: z.ZodOptional<z.ZodString>;
|
|
395
523
|
if: z.ZodOptional<z.ZodString>;
|
|
@@ -405,6 +533,7 @@ export declare namespace Generic {
|
|
|
405
533
|
}>, "strip", z.ZodTypeAny, {
|
|
406
534
|
uses: string;
|
|
407
535
|
name?: string | undefined;
|
|
536
|
+
outputs?: undefined;
|
|
408
537
|
env?: Record<string, string> | undefined;
|
|
409
538
|
id?: string | undefined;
|
|
410
539
|
if?: string | undefined;
|
|
@@ -412,10 +541,10 @@ export declare namespace Generic {
|
|
|
412
541
|
with?: Record<string, string | number | Record<string, any>> | undefined;
|
|
413
542
|
run?: undefined;
|
|
414
543
|
shell?: undefined;
|
|
415
|
-
outputs?: undefined;
|
|
416
544
|
}, {
|
|
417
545
|
uses: string;
|
|
418
546
|
name?: string | undefined;
|
|
547
|
+
outputs?: undefined;
|
|
419
548
|
env?: Record<string, string> | undefined;
|
|
420
549
|
id?: string | undefined;
|
|
421
550
|
if?: string | undefined;
|
|
@@ -423,7 +552,6 @@ export declare namespace Generic {
|
|
|
423
552
|
with?: Record<string, string | number | Record<string, any>> | undefined;
|
|
424
553
|
run?: undefined;
|
|
425
554
|
shell?: undefined;
|
|
426
|
-
outputs?: undefined;
|
|
427
555
|
}>]>, "many">;
|
|
428
556
|
outputs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
429
557
|
}>, "strip", z.ZodTypeAny, {
|
|
@@ -468,6 +596,7 @@ export declare namespace Generic {
|
|
|
468
596
|
steps: ({
|
|
469
597
|
uses: string;
|
|
470
598
|
name?: string | undefined;
|
|
599
|
+
outputs?: undefined;
|
|
471
600
|
env?: Record<string, string> | undefined;
|
|
472
601
|
id?: string | undefined;
|
|
473
602
|
if?: string | undefined;
|
|
@@ -475,10 +604,13 @@ export declare namespace Generic {
|
|
|
475
604
|
with?: Record<string, string | number | Record<string, any>> | undefined;
|
|
476
605
|
run?: undefined;
|
|
477
606
|
shell?: undefined;
|
|
478
|
-
outputs?: undefined;
|
|
479
607
|
} | {
|
|
480
608
|
run: string;
|
|
481
609
|
name?: string | undefined;
|
|
610
|
+
outputs?: {
|
|
611
|
+
name: string;
|
|
612
|
+
required?: boolean | undefined;
|
|
613
|
+
}[] | undefined;
|
|
482
614
|
env?: Record<string, string> | undefined;
|
|
483
615
|
id?: string | undefined;
|
|
484
616
|
if?: string | undefined;
|
|
@@ -486,16 +618,26 @@ export declare namespace Generic {
|
|
|
486
618
|
uses?: undefined;
|
|
487
619
|
with?: undefined;
|
|
488
620
|
shell?: string | undefined;
|
|
489
|
-
outputs?: {
|
|
490
|
-
name: string;
|
|
491
|
-
required?: boolean | undefined;
|
|
492
|
-
}[] | undefined;
|
|
493
621
|
})[];
|
|
494
622
|
type?: undefined;
|
|
623
|
+
outputs?: Record<string, string> | undefined;
|
|
495
624
|
platform?: undefined;
|
|
496
625
|
customBuildConfig?: undefined;
|
|
497
626
|
loggerLevel?: LoggerLevel | undefined;
|
|
498
|
-
|
|
627
|
+
initiatingUserId?: string | undefined;
|
|
628
|
+
appId?: string | undefined;
|
|
629
|
+
workflowInterpolationContext?: {
|
|
630
|
+
needs: Record<string, {
|
|
631
|
+
status: string;
|
|
632
|
+
outputs: Record<string, string | null>;
|
|
633
|
+
}>;
|
|
634
|
+
env: Record<string, string>;
|
|
635
|
+
github?: {
|
|
636
|
+
event_name: "push" | "pull_request" | "workflow_dispatch";
|
|
637
|
+
sha: string;
|
|
638
|
+
ref: string;
|
|
639
|
+
} | undefined;
|
|
640
|
+
} | undefined;
|
|
499
641
|
}, {
|
|
500
642
|
builderEnvironment: {
|
|
501
643
|
env: Record<string, string>;
|
|
@@ -538,6 +680,7 @@ export declare namespace Generic {
|
|
|
538
680
|
steps: ({
|
|
539
681
|
uses: string;
|
|
540
682
|
name?: string | undefined;
|
|
683
|
+
outputs?: undefined;
|
|
541
684
|
env?: Record<string, string> | undefined;
|
|
542
685
|
id?: string | undefined;
|
|
543
686
|
if?: string | undefined;
|
|
@@ -545,10 +688,13 @@ export declare namespace Generic {
|
|
|
545
688
|
with?: Record<string, string | number | Record<string, any>> | undefined;
|
|
546
689
|
run?: undefined;
|
|
547
690
|
shell?: undefined;
|
|
548
|
-
outputs?: undefined;
|
|
549
691
|
} | {
|
|
550
692
|
run: string;
|
|
551
693
|
name?: string | undefined;
|
|
694
|
+
outputs?: {
|
|
695
|
+
name: string;
|
|
696
|
+
required?: boolean | undefined;
|
|
697
|
+
}[] | undefined;
|
|
552
698
|
env?: Record<string, string> | undefined;
|
|
553
699
|
id?: string | undefined;
|
|
554
700
|
if?: string | undefined;
|
|
@@ -556,16 +702,26 @@ export declare namespace Generic {
|
|
|
556
702
|
uses?: undefined;
|
|
557
703
|
with?: undefined;
|
|
558
704
|
shell?: string | undefined;
|
|
559
|
-
outputs?: {
|
|
560
|
-
name: string;
|
|
561
|
-
required?: boolean | undefined;
|
|
562
|
-
}[] | undefined;
|
|
563
705
|
})[];
|
|
564
706
|
type?: undefined;
|
|
707
|
+
outputs?: Record<string, string> | undefined;
|
|
565
708
|
platform?: undefined;
|
|
566
709
|
customBuildConfig?: undefined;
|
|
567
710
|
loggerLevel?: LoggerLevel | undefined;
|
|
568
|
-
|
|
711
|
+
initiatingUserId?: string | undefined;
|
|
712
|
+
appId?: string | undefined;
|
|
713
|
+
workflowInterpolationContext?: {
|
|
714
|
+
needs: Record<string, {
|
|
715
|
+
status: string;
|
|
716
|
+
outputs: Record<string, string | null>;
|
|
717
|
+
}>;
|
|
718
|
+
env: Record<string, string>;
|
|
719
|
+
github?: {
|
|
720
|
+
event_name: "push" | "pull_request" | "workflow_dispatch";
|
|
721
|
+
sha: string;
|
|
722
|
+
ref: string;
|
|
723
|
+
} | undefined;
|
|
724
|
+
} | undefined;
|
|
569
725
|
}>]>;
|
|
570
726
|
type PartialJob = z.infer<typeof PartialJobZ>;
|
|
571
727
|
const PartialJobZ: z.ZodUnion<[z.ZodObject<{
|
|
@@ -684,6 +840,56 @@ export declare namespace Generic {
|
|
|
684
840
|
type: z.ZodOptional<z.ZodOptional<z.ZodNever>>;
|
|
685
841
|
triggeredBy: z.ZodOptional<z.ZodLiteral<BuildTrigger.GIT_BASED_INTEGRATION>>;
|
|
686
842
|
loggerLevel: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof LoggerLevel>>>;
|
|
843
|
+
workflowInterpolationContext: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
844
|
+
needs: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
845
|
+
status: z.ZodString;
|
|
846
|
+
outputs: z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodString>>;
|
|
847
|
+
}, "strip", z.ZodTypeAny, {
|
|
848
|
+
status: string;
|
|
849
|
+
outputs: Record<string, string | null>;
|
|
850
|
+
}, {
|
|
851
|
+
status: string;
|
|
852
|
+
outputs: Record<string, string | null>;
|
|
853
|
+
}>>;
|
|
854
|
+
github: z.ZodOptional<z.ZodObject<{
|
|
855
|
+
event_name: z.ZodEnum<["push", "pull_request", "workflow_dispatch"]>;
|
|
856
|
+
sha: z.ZodString;
|
|
857
|
+
ref: z.ZodString;
|
|
858
|
+
}, "strip", z.ZodTypeAny, {
|
|
859
|
+
event_name: "push" | "pull_request" | "workflow_dispatch";
|
|
860
|
+
sha: string;
|
|
861
|
+
ref: string;
|
|
862
|
+
}, {
|
|
863
|
+
event_name: "push" | "pull_request" | "workflow_dispatch";
|
|
864
|
+
sha: string;
|
|
865
|
+
ref: string;
|
|
866
|
+
}>>;
|
|
867
|
+
env: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
868
|
+
}, "strip", z.ZodTypeAny, {
|
|
869
|
+
needs: Record<string, {
|
|
870
|
+
status: string;
|
|
871
|
+
outputs: Record<string, string | null>;
|
|
872
|
+
}>;
|
|
873
|
+
env: Record<string, string>;
|
|
874
|
+
github?: {
|
|
875
|
+
event_name: "push" | "pull_request" | "workflow_dispatch";
|
|
876
|
+
sha: string;
|
|
877
|
+
ref: string;
|
|
878
|
+
} | undefined;
|
|
879
|
+
}, {
|
|
880
|
+
needs: Record<string, {
|
|
881
|
+
status: string;
|
|
882
|
+
outputs: Record<string, string | null>;
|
|
883
|
+
}>;
|
|
884
|
+
env: Record<string, string>;
|
|
885
|
+
github?: {
|
|
886
|
+
event_name: "push" | "pull_request" | "workflow_dispatch";
|
|
887
|
+
sha: string;
|
|
888
|
+
ref: string;
|
|
889
|
+
} | undefined;
|
|
890
|
+
}>>>;
|
|
891
|
+
initiatingUserId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
892
|
+
appId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
687
893
|
customBuildConfig: z.ZodOptional<z.ZodObject<{
|
|
688
894
|
path: z.ZodString;
|
|
689
895
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -695,6 +901,7 @@ export declare namespace Generic {
|
|
|
695
901
|
outputs: z.ZodOptional<z.ZodOptional<z.ZodNever>>;
|
|
696
902
|
}, "strip", z.ZodTypeAny, {
|
|
697
903
|
type?: undefined;
|
|
904
|
+
outputs?: undefined;
|
|
698
905
|
builderEnvironment?: {
|
|
699
906
|
env: Record<string, string>;
|
|
700
907
|
image: string;
|
|
@@ -737,11 +944,25 @@ export declare namespace Generic {
|
|
|
737
944
|
path: string;
|
|
738
945
|
} | undefined;
|
|
739
946
|
loggerLevel?: LoggerLevel | undefined;
|
|
740
|
-
|
|
947
|
+
initiatingUserId?: string | undefined;
|
|
948
|
+
appId?: string | undefined;
|
|
741
949
|
expoDevUrl?: string | undefined;
|
|
950
|
+
workflowInterpolationContext?: {
|
|
951
|
+
needs: Record<string, {
|
|
952
|
+
status: string;
|
|
953
|
+
outputs: Record<string, string | null>;
|
|
954
|
+
}>;
|
|
955
|
+
env: Record<string, string>;
|
|
956
|
+
github?: {
|
|
957
|
+
event_name: "push" | "pull_request" | "workflow_dispatch";
|
|
958
|
+
sha: string;
|
|
959
|
+
ref: string;
|
|
960
|
+
} | undefined;
|
|
961
|
+
} | undefined;
|
|
742
962
|
steps?: undefined;
|
|
743
963
|
}, {
|
|
744
964
|
type?: undefined;
|
|
965
|
+
outputs?: undefined;
|
|
745
966
|
builderEnvironment?: {
|
|
746
967
|
env: Record<string, string>;
|
|
747
968
|
image: string;
|
|
@@ -784,8 +1005,21 @@ export declare namespace Generic {
|
|
|
784
1005
|
path: string;
|
|
785
1006
|
} | undefined;
|
|
786
1007
|
loggerLevel?: LoggerLevel | undefined;
|
|
787
|
-
|
|
1008
|
+
initiatingUserId?: string | undefined;
|
|
1009
|
+
appId?: string | undefined;
|
|
788
1010
|
expoDevUrl?: string | undefined;
|
|
1011
|
+
workflowInterpolationContext?: {
|
|
1012
|
+
needs: Record<string, {
|
|
1013
|
+
status: string;
|
|
1014
|
+
outputs: Record<string, string | null>;
|
|
1015
|
+
}>;
|
|
1016
|
+
env: Record<string, string>;
|
|
1017
|
+
github?: {
|
|
1018
|
+
event_name: "push" | "pull_request" | "workflow_dispatch";
|
|
1019
|
+
sha: string;
|
|
1020
|
+
ref: string;
|
|
1021
|
+
} | undefined;
|
|
1022
|
+
} | undefined;
|
|
789
1023
|
steps?: undefined;
|
|
790
1024
|
}>, z.ZodObject<{
|
|
791
1025
|
projectArchive: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
@@ -903,6 +1137,56 @@ export declare namespace Generic {
|
|
|
903
1137
|
type: z.ZodOptional<z.ZodOptional<z.ZodNever>>;
|
|
904
1138
|
triggeredBy: z.ZodOptional<z.ZodLiteral<BuildTrigger.GIT_BASED_INTEGRATION>>;
|
|
905
1139
|
loggerLevel: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof LoggerLevel>>>;
|
|
1140
|
+
workflowInterpolationContext: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
1141
|
+
needs: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1142
|
+
status: z.ZodString;
|
|
1143
|
+
outputs: z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodString>>;
|
|
1144
|
+
}, "strip", z.ZodTypeAny, {
|
|
1145
|
+
status: string;
|
|
1146
|
+
outputs: Record<string, string | null>;
|
|
1147
|
+
}, {
|
|
1148
|
+
status: string;
|
|
1149
|
+
outputs: Record<string, string | null>;
|
|
1150
|
+
}>>;
|
|
1151
|
+
github: z.ZodOptional<z.ZodObject<{
|
|
1152
|
+
event_name: z.ZodEnum<["push", "pull_request", "workflow_dispatch"]>;
|
|
1153
|
+
sha: z.ZodString;
|
|
1154
|
+
ref: z.ZodString;
|
|
1155
|
+
}, "strip", z.ZodTypeAny, {
|
|
1156
|
+
event_name: "push" | "pull_request" | "workflow_dispatch";
|
|
1157
|
+
sha: string;
|
|
1158
|
+
ref: string;
|
|
1159
|
+
}, {
|
|
1160
|
+
event_name: "push" | "pull_request" | "workflow_dispatch";
|
|
1161
|
+
sha: string;
|
|
1162
|
+
ref: string;
|
|
1163
|
+
}>>;
|
|
1164
|
+
env: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
1165
|
+
}, "strip", z.ZodTypeAny, {
|
|
1166
|
+
needs: Record<string, {
|
|
1167
|
+
status: string;
|
|
1168
|
+
outputs: Record<string, string | null>;
|
|
1169
|
+
}>;
|
|
1170
|
+
env: Record<string, string>;
|
|
1171
|
+
github?: {
|
|
1172
|
+
event_name: "push" | "pull_request" | "workflow_dispatch";
|
|
1173
|
+
sha: string;
|
|
1174
|
+
ref: string;
|
|
1175
|
+
} | undefined;
|
|
1176
|
+
}, {
|
|
1177
|
+
needs: Record<string, {
|
|
1178
|
+
status: string;
|
|
1179
|
+
outputs: Record<string, string | null>;
|
|
1180
|
+
}>;
|
|
1181
|
+
env: Record<string, string>;
|
|
1182
|
+
github?: {
|
|
1183
|
+
event_name: "push" | "pull_request" | "workflow_dispatch";
|
|
1184
|
+
sha: string;
|
|
1185
|
+
ref: string;
|
|
1186
|
+
} | undefined;
|
|
1187
|
+
}>>>;
|
|
1188
|
+
initiatingUserId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
1189
|
+
appId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
906
1190
|
customBuildConfig: z.ZodOptional<z.ZodOptional<z.ZodNever>>;
|
|
907
1191
|
steps: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
|
|
908
1192
|
id: z.ZodOptional<z.ZodString>;
|
|
@@ -928,6 +1212,10 @@ export declare namespace Generic {
|
|
|
928
1212
|
}>, "strip", z.ZodTypeAny, {
|
|
929
1213
|
run: string;
|
|
930
1214
|
name?: string | undefined;
|
|
1215
|
+
outputs?: {
|
|
1216
|
+
name: string;
|
|
1217
|
+
required?: boolean | undefined;
|
|
1218
|
+
}[] | undefined;
|
|
931
1219
|
env?: Record<string, string> | undefined;
|
|
932
1220
|
id?: string | undefined;
|
|
933
1221
|
if?: string | undefined;
|
|
@@ -935,13 +1223,13 @@ export declare namespace Generic {
|
|
|
935
1223
|
uses?: undefined;
|
|
936
1224
|
with?: undefined;
|
|
937
1225
|
shell?: string | undefined;
|
|
1226
|
+
}, {
|
|
1227
|
+
run: string;
|
|
1228
|
+
name?: string | undefined;
|
|
938
1229
|
outputs?: {
|
|
939
1230
|
name: string;
|
|
940
1231
|
required?: boolean | undefined;
|
|
941
1232
|
}[] | undefined;
|
|
942
|
-
}, {
|
|
943
|
-
run: string;
|
|
944
|
-
name?: string | undefined;
|
|
945
1233
|
env?: Record<string, string> | undefined;
|
|
946
1234
|
id?: string | undefined;
|
|
947
1235
|
if?: string | undefined;
|
|
@@ -949,10 +1237,6 @@ export declare namespace Generic {
|
|
|
949
1237
|
uses?: undefined;
|
|
950
1238
|
with?: undefined;
|
|
951
1239
|
shell?: string | undefined;
|
|
952
|
-
outputs?: {
|
|
953
|
-
name: string;
|
|
954
|
-
required?: boolean | undefined;
|
|
955
|
-
}[] | undefined;
|
|
956
1240
|
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
957
1241
|
id: z.ZodOptional<z.ZodString>;
|
|
958
1242
|
if: z.ZodOptional<z.ZodString>;
|
|
@@ -968,6 +1252,7 @@ export declare namespace Generic {
|
|
|
968
1252
|
}>, "strip", z.ZodTypeAny, {
|
|
969
1253
|
uses: string;
|
|
970
1254
|
name?: string | undefined;
|
|
1255
|
+
outputs?: undefined;
|
|
971
1256
|
env?: Record<string, string> | undefined;
|
|
972
1257
|
id?: string | undefined;
|
|
973
1258
|
if?: string | undefined;
|
|
@@ -975,10 +1260,10 @@ export declare namespace Generic {
|
|
|
975
1260
|
with?: Record<string, string | number | Record<string, any>> | undefined;
|
|
976
1261
|
run?: undefined;
|
|
977
1262
|
shell?: undefined;
|
|
978
|
-
outputs?: undefined;
|
|
979
1263
|
}, {
|
|
980
1264
|
uses: string;
|
|
981
1265
|
name?: string | undefined;
|
|
1266
|
+
outputs?: undefined;
|
|
982
1267
|
env?: Record<string, string> | undefined;
|
|
983
1268
|
id?: string | undefined;
|
|
984
1269
|
if?: string | undefined;
|
|
@@ -986,11 +1271,11 @@ export declare namespace Generic {
|
|
|
986
1271
|
with?: Record<string, string | number | Record<string, any>> | undefined;
|
|
987
1272
|
run?: undefined;
|
|
988
1273
|
shell?: undefined;
|
|
989
|
-
outputs?: undefined;
|
|
990
1274
|
}>]>, "many">>;
|
|
991
1275
|
outputs: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>>;
|
|
992
1276
|
}, "strip", z.ZodTypeAny, {
|
|
993
1277
|
type?: undefined;
|
|
1278
|
+
outputs?: Record<string, string> | undefined;
|
|
994
1279
|
builderEnvironment?: {
|
|
995
1280
|
env: Record<string, string>;
|
|
996
1281
|
image: string;
|
|
@@ -1031,11 +1316,25 @@ export declare namespace Generic {
|
|
|
1031
1316
|
} | undefined;
|
|
1032
1317
|
customBuildConfig?: undefined;
|
|
1033
1318
|
loggerLevel?: LoggerLevel | undefined;
|
|
1034
|
-
|
|
1319
|
+
initiatingUserId?: string | undefined;
|
|
1320
|
+
appId?: string | undefined;
|
|
1035
1321
|
expoDevUrl?: string | undefined;
|
|
1322
|
+
workflowInterpolationContext?: {
|
|
1323
|
+
needs: Record<string, {
|
|
1324
|
+
status: string;
|
|
1325
|
+
outputs: Record<string, string | null>;
|
|
1326
|
+
}>;
|
|
1327
|
+
env: Record<string, string>;
|
|
1328
|
+
github?: {
|
|
1329
|
+
event_name: "push" | "pull_request" | "workflow_dispatch";
|
|
1330
|
+
sha: string;
|
|
1331
|
+
ref: string;
|
|
1332
|
+
} | undefined;
|
|
1333
|
+
} | undefined;
|
|
1036
1334
|
steps?: ({
|
|
1037
1335
|
uses: string;
|
|
1038
1336
|
name?: string | undefined;
|
|
1337
|
+
outputs?: undefined;
|
|
1039
1338
|
env?: Record<string, string> | undefined;
|
|
1040
1339
|
id?: string | undefined;
|
|
1041
1340
|
if?: string | undefined;
|
|
@@ -1043,10 +1342,13 @@ export declare namespace Generic {
|
|
|
1043
1342
|
with?: Record<string, string | number | Record<string, any>> | undefined;
|
|
1044
1343
|
run?: undefined;
|
|
1045
1344
|
shell?: undefined;
|
|
1046
|
-
outputs?: undefined;
|
|
1047
1345
|
} | {
|
|
1048
1346
|
run: string;
|
|
1049
1347
|
name?: string | undefined;
|
|
1348
|
+
outputs?: {
|
|
1349
|
+
name: string;
|
|
1350
|
+
required?: boolean | undefined;
|
|
1351
|
+
}[] | undefined;
|
|
1050
1352
|
env?: Record<string, string> | undefined;
|
|
1051
1353
|
id?: string | undefined;
|
|
1052
1354
|
if?: string | undefined;
|
|
@@ -1054,13 +1356,10 @@ export declare namespace Generic {
|
|
|
1054
1356
|
uses?: undefined;
|
|
1055
1357
|
with?: undefined;
|
|
1056
1358
|
shell?: string | undefined;
|
|
1057
|
-
outputs?: {
|
|
1058
|
-
name: string;
|
|
1059
|
-
required?: boolean | undefined;
|
|
1060
|
-
}[] | undefined;
|
|
1061
1359
|
})[] | undefined;
|
|
1062
1360
|
}, {
|
|
1063
1361
|
type?: undefined;
|
|
1362
|
+
outputs?: Record<string, string> | undefined;
|
|
1064
1363
|
builderEnvironment?: {
|
|
1065
1364
|
env: Record<string, string>;
|
|
1066
1365
|
image: string;
|
|
@@ -1101,11 +1400,25 @@ export declare namespace Generic {
|
|
|
1101
1400
|
} | undefined;
|
|
1102
1401
|
customBuildConfig?: undefined;
|
|
1103
1402
|
loggerLevel?: LoggerLevel | undefined;
|
|
1104
|
-
|
|
1403
|
+
initiatingUserId?: string | undefined;
|
|
1404
|
+
appId?: string | undefined;
|
|
1105
1405
|
expoDevUrl?: string | undefined;
|
|
1406
|
+
workflowInterpolationContext?: {
|
|
1407
|
+
needs: Record<string, {
|
|
1408
|
+
status: string;
|
|
1409
|
+
outputs: Record<string, string | null>;
|
|
1410
|
+
}>;
|
|
1411
|
+
env: Record<string, string>;
|
|
1412
|
+
github?: {
|
|
1413
|
+
event_name: "push" | "pull_request" | "workflow_dispatch";
|
|
1414
|
+
sha: string;
|
|
1415
|
+
ref: string;
|
|
1416
|
+
} | undefined;
|
|
1417
|
+
} | undefined;
|
|
1106
1418
|
steps?: ({
|
|
1107
1419
|
uses: string;
|
|
1108
1420
|
name?: string | undefined;
|
|
1421
|
+
outputs?: undefined;
|
|
1109
1422
|
env?: Record<string, string> | undefined;
|
|
1110
1423
|
id?: string | undefined;
|
|
1111
1424
|
if?: string | undefined;
|
|
@@ -1113,10 +1426,13 @@ export declare namespace Generic {
|
|
|
1113
1426
|
with?: Record<string, string | number | Record<string, any>> | undefined;
|
|
1114
1427
|
run?: undefined;
|
|
1115
1428
|
shell?: undefined;
|
|
1116
|
-
outputs?: undefined;
|
|
1117
1429
|
} | {
|
|
1118
1430
|
run: string;
|
|
1119
1431
|
name?: string | undefined;
|
|
1432
|
+
outputs?: {
|
|
1433
|
+
name: string;
|
|
1434
|
+
required?: boolean | undefined;
|
|
1435
|
+
}[] | undefined;
|
|
1120
1436
|
env?: Record<string, string> | undefined;
|
|
1121
1437
|
id?: string | undefined;
|
|
1122
1438
|
if?: string | undefined;
|
|
@@ -1124,10 +1440,6 @@ export declare namespace Generic {
|
|
|
1124
1440
|
uses?: undefined;
|
|
1125
1441
|
with?: undefined;
|
|
1126
1442
|
shell?: string | undefined;
|
|
1127
|
-
outputs?: {
|
|
1128
|
-
name: string;
|
|
1129
|
-
required?: boolean | undefined;
|
|
1130
|
-
}[] | undefined;
|
|
1131
1443
|
})[] | undefined;
|
|
1132
1444
|
}>]>;
|
|
1133
1445
|
}
|
package/dist/generic.js
CHANGED
|
@@ -34,6 +34,9 @@ var Generic;
|
|
|
34
34
|
type: zod_1.z.never().optional(),
|
|
35
35
|
triggeredBy: zod_1.z.literal(common_1.BuildTrigger.GIT_BASED_INTEGRATION),
|
|
36
36
|
loggerLevel: zod_1.z.nativeEnum(logger_1.LoggerLevel).optional(),
|
|
37
|
+
workflowInterpolationContext: common_1.StaticWorkflowInterpolationContextZ.optional(),
|
|
38
|
+
initiatingUserId: zod_1.z.string().optional(),
|
|
39
|
+
appId: zod_1.z.string().optional(),
|
|
37
40
|
});
|
|
38
41
|
const PathJobZ = CommonJobZ.extend({
|
|
39
42
|
customBuildConfig: zod_1.z.object({
|
package/dist/generic.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"generic.js","sourceRoot":"","sources":["../src/generic.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,yCAA2C;AAE3C,
|
|
1
|
+
{"version":3,"file":"generic.js","sourceRoot":"","sources":["../src/generic.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,yCAA2C;AAE3C,qCAKkB;AAClB,iCAA+B;AAE/B,IAAiB,OAAO,CAsDvB;AAtDD,WAAiB,OAAO;IACtB,MAAM,yBAAyB,GAAG,OAAC,CAAC,MAAM,CAAC;QACzC,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE;QACjB,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,CA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E5E,gBAAgB,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QACvC,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;KAC7B,CAAC,CAAC;IAEH,MAAM,QAAQ,GAAG,UAAU,CAAC,MAAM,CAAC;QACjC,iBAAiB,EAAE,OAAC,CAAC,MAAM,CAAC;YAC1B,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE;SACjB,CAAC;QACF,KAAK,EAAE,OAAC,CAAC,KAAK,EAAE,CAAC,QAAQ,EAAE;QAC3B,OAAO,EAAE,OAAC,CAAC,KAAK,EAAE,CAAC,QAAQ,EAAE;KAC9B,CAAC,CAAC;IAEH,MAAM,SAAS,GAAG,UAAU,CAAC,MAAM,CAAC;QAClC,iBAAiB,EAAE,OAAC,CAAC,KAAK,EAAE,CAAC,QAAQ,EAAE;QACvC,KAAK,EAAE,OAAC,CAAC,KAAK,CAAC,YAAK,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC;QAC5B,OAAO,EAAE,OAAC,CAAC,MAAM,CAAC,OAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;KACzC,CAAC,CAAC;IAGU,YAAI,GAAG,OAAC,CAAC,KAAK,CAAC,CAAC,QAAQ,EAAE,SAAS,CAAC,CAAC,CAAC;IAGtC,mBAAW,GAAG,OAAC,CAAC,KAAK,CAAC,CAAC,QAAQ,CAAC,OAAO,EAAE,EAAE,SAAS,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC;AAChF,CAAC,EAtDgB,OAAO,uBAAP,OAAO,QAsDvB","sourcesContent":["import { z } from 'zod';\nimport { LoggerLevel } from '@expo/logger';\n\nimport {\n ArchiveSourceSchemaZ,\n BuildTrigger,\n EnvironmentSecretZ,\n StaticWorkflowInterpolationContextZ,\n} from './common';\nimport { StepZ } from './step';\n\nexport namespace Generic {\n const BuilderEnvironmentSchemaZ = z.object({\n image: z.string(),\n node: z.string().optional(),\n yarn: z.string().optional(),\n pnpm: z.string().optional(),\n bun: z.string().optional(),\n env: z.record(z.string()),\n // Linux\n ndk: z.string().optional(),\n // macOS\n bundler: z.string().optional(),\n fastlane: z.string().optional(),\n cocoapods: z.string().optional(),\n });\n\n const CommonJobZ = z.object({\n projectArchive: ArchiveSourceSchemaZ,\n secrets: z.object({\n robotAccessToken: z.string(),\n environmentSecrets: z.array(EnvironmentSecretZ),\n }),\n expoDevUrl: z.string().url(),\n builderEnvironment: BuilderEnvironmentSchemaZ,\n // We use this to discern between Android.Job, Ios.Job and Generic.Job.\n platform: z.never().optional(),\n type: z.never().optional(),\n triggeredBy: z.literal(BuildTrigger.GIT_BASED_INTEGRATION),\n loggerLevel: z.nativeEnum(LoggerLevel).optional(),\n workflowInterpolationContext: StaticWorkflowInterpolationContextZ.optional(),\n\n initiatingUserId: z.string().optional(),\n appId: z.string().optional(),\n });\n\n const PathJobZ = CommonJobZ.extend({\n customBuildConfig: z.object({\n path: z.string(),\n }),\n steps: z.never().optional(),\n outputs: z.never().optional(),\n });\n\n const StepsJobZ = CommonJobZ.extend({\n customBuildConfig: z.never().optional(),\n steps: z.array(StepZ).min(1),\n outputs: z.record(z.string()).optional(),\n });\n\n export type Job = z.infer<typeof JobZ>;\n export const JobZ = z.union([PathJobZ, StepsJobZ]);\n\n export type PartialJob = z.infer<typeof PartialJobZ>;\n export const PartialJobZ = z.union([PathJobZ.partial(), StepsJobZ.partial()]);\n}\n"]}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export * as Android from './android';
|
|
2
2
|
export * as Ios from './ios';
|
|
3
|
-
export { ArchiveSourceType, ArchiveSource, BuildMode, BuildPhaseStats, BuildTrigger, Env, EnvironmentSecret, EnvironmentSecretType, Workflow, Platform, Cache, } from './common';
|
|
3
|
+
export { ArchiveSourceType, ArchiveSource, BuildMode, BuildPhaseStats, BuildTrigger, Env, EnvironmentSecret, EnvironmentSecretType, Workflow, Platform, Cache, WorkflowInterpolationContext, } from './common';
|
|
4
4
|
export { Metadata, sanitizeMetadata, FingerprintSource, FingerprintSourceType } from './metadata';
|
|
5
5
|
export * from './job';
|
|
6
6
|
export * from './logs';
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,qDAAqC;AACrC,6CAA6B;AAC7B,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,qDAAqC;AACrC,6CAA6B;AAC7B,mCAakB;AAZhB,2GAAA,iBAAiB,OAAA;AAEjB,mGAAA,SAAS,OAAA;AAET,sGAAA,YAAY,OAAA;AAGZ,+GAAA,qBAAqB,OAAA;AACrB,kGAAA,QAAQ,OAAA;AACR,kGAAA,QAAQ,OAAA;AAIV,uCAAkG;AAA/E,4GAAA,gBAAgB,OAAA;AAAqB,iHAAA,qBAAqB,OAAA;AAC7E,wCAAsB;AACtB,yCAAuB;AACvB,mDAAmC;AACnC,8CAA4B;AAC5B,4CAA0B;AAC1B,4CAA0B;AAC1B,yCAAuB;AACvB,sDAAoC","sourcesContent":["export * as Android from './android';\nexport * as Ios from './ios';\nexport {\n ArchiveSourceType,\n ArchiveSource,\n BuildMode,\n BuildPhaseStats,\n BuildTrigger,\n Env,\n EnvironmentSecret,\n EnvironmentSecretType,\n Workflow,\n Platform,\n Cache,\n WorkflowInterpolationContext,\n} from './common';\nexport { Metadata, sanitizeMetadata, FingerprintSource, FingerprintSourceType } from './metadata';\nexport * from './job';\nexport * from './logs';\nexport * as errors from './errors';\nexport * from './artifacts';\nexport * from './context';\nexport * from './generic';\nexport * from './step';\nexport * from './submission-config';\n"]}
|
package/dist/ios.d.ts
CHANGED
package/dist/ios.js
CHANGED
|
@@ -104,5 +104,7 @@ exports.JobSchema = joi_1.default.object({
|
|
|
104
104
|
submitProfile: joi_1.default.string(),
|
|
105
105
|
}),
|
|
106
106
|
loggerLevel: joi_1.default.string().valid(...Object.values(logger_1.LoggerLevel)),
|
|
107
|
+
initiatingUserId: joi_1.default.string(),
|
|
108
|
+
appId: joi_1.default.string(),
|
|
107
109
|
});
|
|
108
110
|
//# sourceMappingURL=ios.js.map
|
package/dist/ios.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ios.js","sourceRoot":"","sources":["../src/ios.ts"],"names":[],"mappings":";;;;;;AAAA,8CAAsB;AACtB,yCAA2C;AAE3C,qCAakB;AAIlB,MAAM,uBAAuB,GAAG,aAAG,CAAC,MAAM,EAAE,CAAC,IAAI,CAAC;IAChD,yBAAyB,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAClD,uBAAuB,EAAE,aAAG,CAAC,MAAM,CAAC;QAClC,UAAU,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QACnC,QAAQ,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC,QAAQ,EAAE;KAC5C,CAAC,CAAC,QAAQ,EAAE;CACd,CAAC,CAAC;AAOH,MAAM,sBAAsB,GAAG,aAAG,CAAC,MAAM,EAAE,CAAC,OAAO,CACjD,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,EACvB,uBAAuB,CACxB,CAAC;AAqBF,MAAM,wBAAwB,GAAG,aAAG,CAAC,MAAM,CAAC;IAC1C,KAAK,EAAE,aAAG,CAAC,MAAM,EAAE;IACnB,IAAI,EAAE,aAAG,CAAC,MAAM,EAAE;IAClB,IAAI,EAAE,aAAG,CAAC,MAAM,EAAE;IAClB,IAAI,EAAE,aAAG,CAAC,MAAM,EAAE;IAClB,GAAG,EAAE,aAAG,CAAC,MAAM,EAAE;IACjB,OAAO,EAAE,aAAG,CAAC,MAAM,EAAE;IACrB,QAAQ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M,CAAC,MAAM,CAAC,oBAAW,CAAC,CAAC;IAE9D,gBAAgB,EAAE,aAAG,CAAC,MAAM,EAAE;IAC9B,KAAK,EAAE,aAAG,CAAC,MAAM,EAAE;CACpB,CAAC,CAAC","sourcesContent":["import Joi from 'joi';\nimport { LoggerLevel } from '@expo/logger';\n\nimport {\n ArchiveSource,\n ArchiveSourceSchema,\n Env,\n EnvSchema,\n Platform,\n Workflow,\n Cache,\n CacheSchema,\n EnvironmentSecretsSchema,\n EnvironmentSecret,\n BuildTrigger,\n BuildMode,\n} from './common';\n\nexport type DistributionType = 'store' | 'internal' | 'simulator';\n\nconst TargetCredentialsSchema = Joi.object().keys({\n provisioningProfileBase64: Joi.string().required(),\n distributionCertificate: Joi.object({\n dataBase64: Joi.string().required(),\n password: Joi.string().allow('').required(),\n }).required(),\n});\n\nexport interface TargetCredentials {\n provisioningProfileBase64: string;\n distributionCertificate: DistributionCertificate;\n}\n\nconst BuildCredentialsSchema = Joi.object().pattern(\n Joi.string().required(),\n TargetCredentialsSchema\n);\n\ntype Target = string;\nexport type BuildCredentials = Record<Target, TargetCredentials>;\n\nexport interface DistributionCertificate {\n dataBase64: string;\n password: string;\n}\nexport interface BuilderEnvironment {\n image?: string;\n node?: string;\n yarn?: string;\n bun?: string;\n pnpm?: string;\n bundler?: string;\n fastlane?: string;\n cocoapods?: string;\n env?: Env;\n}\n\nconst BuilderEnvironmentSchema = Joi.object({\n image: Joi.string(),\n node: Joi.string(),\n yarn: Joi.string(),\n pnpm: Joi.string(),\n bun: Joi.string(),\n bundler: Joi.string(),\n fastlane: Joi.string(),\n cocoapods: Joi.string(),\n env: EnvSchema,\n});\n\nexport interface BuildSecrets {\n buildCredentials?: BuildCredentials;\n environmentSecrets?: EnvironmentSecret[];\n robotAccessToken?: string;\n}\n\nexport interface Job {\n mode: BuildMode;\n type: Workflow;\n triggeredBy: BuildTrigger;\n projectArchive: ArchiveSource;\n resign?: {\n applicationArchiveSource: ArchiveSource;\n };\n platform: Platform.IOS;\n projectRootDirectory?: string;\n buildProfile?: string;\n updates?: {\n channel?: string;\n };\n secrets?: BuildSecrets;\n builderEnvironment?: BuilderEnvironment;\n cache: Cache;\n developmentClient?: boolean;\n simulator?: boolean;\n version?: {\n buildNumber?: string;\n /**\n * support for this field is implemented, but specifying it is disabled on schema level\n */\n appVersion?: string;\n /**\n * support for this field is implemented, but specifying it is disabled on schema level\n */\n runtimeVersion?: string;\n };\n buildArtifactPaths?: string[];\n\n scheme?: string;\n buildConfiguration?: string;\n applicationArchivePath?: string;\n\n username?: string;\n\n customBuildConfig?: {\n path: string;\n };\n\n experimental?: {\n prebuildCommand?: string;\n };\n expoBuildUrl?: string;\n githubTriggerOptions?: {\n autoSubmit: boolean;\n submitProfile?: string;\n };\n loggerLevel?: LoggerLevel;\n\n workflowInterpolationContext?: never;\n\n initiatingUserId?: string;\n appId?: string;\n}\n\nconst SecretsSchema = Joi.object({\n buildCredentials: BuildCredentialsSchema,\n environmentSecrets: EnvironmentSecretsSchema,\n robotAccessToken: Joi.string(),\n});\n\nexport const JobSchema = Joi.object({\n mode: Joi.string()\n .valid(...Object.values(BuildMode))\n .default(BuildMode.BUILD),\n type: Joi.when('mode', {\n is: Joi.string().valid(BuildMode.RESIGN),\n then: Joi.string().valid(Workflow.UNKNOWN).default(Workflow.UNKNOWN),\n otherwise: Joi.string()\n .valid(...Object.values(Workflow))\n .required(),\n }),\n triggeredBy: Joi.string()\n .valid(...Object.values(BuildTrigger))\n .default(BuildTrigger.EAS_CLI),\n projectArchive: ArchiveSourceSchema.required(),\n resign: Joi.when('mode', {\n is: Joi.string().valid(BuildMode.RESIGN),\n then: Joi.object({\n applicationArchiveSource: ArchiveSourceSchema.required(),\n }).required(),\n otherwise: Joi.any().strip(),\n }),\n platform: Joi.string().valid(Platform.IOS).required(),\n projectRootDirectory: Joi.when('mode', {\n is: Joi.string().valid(BuildMode.RESIGN),\n then: Joi.any().strip(),\n otherwise: Joi.string().required(),\n }),\n buildProfile: Joi.when('mode', {\n is: Joi.string().valid(BuildMode.BUILD),\n then: Joi.when('triggeredBy', {\n is: Joi.string().valid(BuildTrigger.GIT_BASED_INTEGRATION),\n then: Joi.string().required(),\n otherwise: Joi.string(),\n }),\n otherwise: Joi.string(),\n }),\n updates: Joi.object({\n channel: Joi.string(),\n }),\n secrets: Joi.when('mode', {\n is: Joi.string().valid(BuildMode.CUSTOM),\n then: SecretsSchema,\n otherwise: SecretsSchema.required(),\n }),\n builderEnvironment: BuilderEnvironmentSchema,\n cache: CacheSchema.default(),\n developmentClient: Joi.boolean(),\n simulator: Joi.boolean(),\n version: Joi.object({\n buildNumber: Joi.string(),\n }),\n buildArtifactPaths: Joi.array().items(Joi.string()),\n\n scheme: Joi.string(),\n buildConfiguration: Joi.string(),\n applicationArchivePath: Joi.string(),\n\n username: Joi.string(),\n\n customBuildConfig: Joi.when('mode', {\n is: Joi.string().valid(BuildMode.CUSTOM),\n then: Joi.object({\n path: Joi.string(),\n }).required(),\n otherwise: Joi.any().strip(),\n }),\n\n experimental: Joi.object({\n prebuildCommand: Joi.string(),\n }),\n expoBuildUrl: Joi.string().uri().optional(),\n githubTriggerOptions: Joi.object({\n autoSubmit: Joi.boolean().default(false),\n submitProfile: Joi.string(),\n }),\n loggerLevel: Joi.string().valid(...Object.values(LoggerLevel)),\n\n initiatingUserId: Joi.string(),\n appId: Joi.string(),\n});\n"]}
|
package/dist/step.d.ts
CHANGED
|
@@ -69,6 +69,7 @@ export declare const FunctionStepZ: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
69
69
|
}>, "strip", z.ZodTypeAny, {
|
|
70
70
|
uses: string;
|
|
71
71
|
name?: string | undefined;
|
|
72
|
+
outputs?: undefined;
|
|
72
73
|
env?: Record<string, string> | undefined;
|
|
73
74
|
id?: string | undefined;
|
|
74
75
|
if?: string | undefined;
|
|
@@ -76,10 +77,10 @@ export declare const FunctionStepZ: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
76
77
|
with?: Record<string, string | number | Record<string, any>> | undefined;
|
|
77
78
|
run?: undefined;
|
|
78
79
|
shell?: undefined;
|
|
79
|
-
outputs?: undefined;
|
|
80
80
|
}, {
|
|
81
81
|
uses: string;
|
|
82
82
|
name?: string | undefined;
|
|
83
|
+
outputs?: undefined;
|
|
83
84
|
env?: Record<string, string> | undefined;
|
|
84
85
|
id?: string | undefined;
|
|
85
86
|
if?: string | undefined;
|
|
@@ -87,7 +88,6 @@ export declare const FunctionStepZ: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
87
88
|
with?: Record<string, string | number | Record<string, any>> | undefined;
|
|
88
89
|
run?: undefined;
|
|
89
90
|
shell?: undefined;
|
|
90
|
-
outputs?: undefined;
|
|
91
91
|
}>;
|
|
92
92
|
export type FunctionStep = z.infer<typeof FunctionStepZ>;
|
|
93
93
|
export declare const ShellStepZ: z.ZodObject<z.objectUtil.extendShape<{
|
|
@@ -177,6 +177,10 @@ export declare const ShellStepZ: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
177
177
|
}>, "strip", z.ZodTypeAny, {
|
|
178
178
|
run: string;
|
|
179
179
|
name?: string | undefined;
|
|
180
|
+
outputs?: {
|
|
181
|
+
name: string;
|
|
182
|
+
required?: boolean | undefined;
|
|
183
|
+
}[] | undefined;
|
|
180
184
|
env?: Record<string, string> | undefined;
|
|
181
185
|
id?: string | undefined;
|
|
182
186
|
if?: string | undefined;
|
|
@@ -184,13 +188,13 @@ export declare const ShellStepZ: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
184
188
|
uses?: undefined;
|
|
185
189
|
with?: undefined;
|
|
186
190
|
shell?: string | undefined;
|
|
191
|
+
}, {
|
|
192
|
+
run: string;
|
|
193
|
+
name?: string | undefined;
|
|
187
194
|
outputs?: {
|
|
188
195
|
name: string;
|
|
189
196
|
required?: boolean | undefined;
|
|
190
197
|
}[] | undefined;
|
|
191
|
-
}, {
|
|
192
|
-
run: string;
|
|
193
|
-
name?: string | undefined;
|
|
194
198
|
env?: Record<string, string> | undefined;
|
|
195
199
|
id?: string | undefined;
|
|
196
200
|
if?: string | undefined;
|
|
@@ -198,10 +202,6 @@ export declare const ShellStepZ: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
198
202
|
uses?: undefined;
|
|
199
203
|
with?: undefined;
|
|
200
204
|
shell?: string | undefined;
|
|
201
|
-
outputs?: {
|
|
202
|
-
name: string;
|
|
203
|
-
required?: boolean | undefined;
|
|
204
|
-
}[] | undefined;
|
|
205
205
|
}>;
|
|
206
206
|
export type ShellStep = z.infer<typeof ShellStepZ>;
|
|
207
207
|
export declare const StepZ: z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
|
|
@@ -291,6 +291,10 @@ export declare const StepZ: z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
|
|
|
291
291
|
}>, "strip", z.ZodTypeAny, {
|
|
292
292
|
run: string;
|
|
293
293
|
name?: string | undefined;
|
|
294
|
+
outputs?: {
|
|
295
|
+
name: string;
|
|
296
|
+
required?: boolean | undefined;
|
|
297
|
+
}[] | undefined;
|
|
294
298
|
env?: Record<string, string> | undefined;
|
|
295
299
|
id?: string | undefined;
|
|
296
300
|
if?: string | undefined;
|
|
@@ -298,13 +302,13 @@ export declare const StepZ: z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
|
|
|
298
302
|
uses?: undefined;
|
|
299
303
|
with?: undefined;
|
|
300
304
|
shell?: string | undefined;
|
|
305
|
+
}, {
|
|
306
|
+
run: string;
|
|
307
|
+
name?: string | undefined;
|
|
301
308
|
outputs?: {
|
|
302
309
|
name: string;
|
|
303
310
|
required?: boolean | undefined;
|
|
304
311
|
}[] | undefined;
|
|
305
|
-
}, {
|
|
306
|
-
run: string;
|
|
307
|
-
name?: string | undefined;
|
|
308
312
|
env?: Record<string, string> | undefined;
|
|
309
313
|
id?: string | undefined;
|
|
310
314
|
if?: string | undefined;
|
|
@@ -312,10 +316,6 @@ export declare const StepZ: z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
|
|
|
312
316
|
uses?: undefined;
|
|
313
317
|
with?: undefined;
|
|
314
318
|
shell?: string | undefined;
|
|
315
|
-
outputs?: {
|
|
316
|
-
name: string;
|
|
317
|
-
required?: boolean | undefined;
|
|
318
|
-
}[] | undefined;
|
|
319
319
|
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
320
320
|
/**
|
|
321
321
|
* Unique identifier for the step.
|
|
@@ -386,6 +386,7 @@ export declare const StepZ: z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
|
|
|
386
386
|
}>, "strip", z.ZodTypeAny, {
|
|
387
387
|
uses: string;
|
|
388
388
|
name?: string | undefined;
|
|
389
|
+
outputs?: undefined;
|
|
389
390
|
env?: Record<string, string> | undefined;
|
|
390
391
|
id?: string | undefined;
|
|
391
392
|
if?: string | undefined;
|
|
@@ -393,10 +394,10 @@ export declare const StepZ: z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
|
|
|
393
394
|
with?: Record<string, string | number | Record<string, any>> | undefined;
|
|
394
395
|
run?: undefined;
|
|
395
396
|
shell?: undefined;
|
|
396
|
-
outputs?: undefined;
|
|
397
397
|
}, {
|
|
398
398
|
uses: string;
|
|
399
399
|
name?: string | undefined;
|
|
400
|
+
outputs?: undefined;
|
|
400
401
|
env?: Record<string, string> | undefined;
|
|
401
402
|
id?: string | undefined;
|
|
402
403
|
if?: string | undefined;
|
|
@@ -404,7 +405,6 @@ export declare const StepZ: z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
|
|
|
404
405
|
with?: Record<string, string | number | Record<string, any>> | undefined;
|
|
405
406
|
run?: undefined;
|
|
406
407
|
shell?: undefined;
|
|
407
|
-
outputs?: undefined;
|
|
408
408
|
}>]>;
|
|
409
409
|
/**
|
|
410
410
|
* Structure of a custom EAS job step.
|
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.139",
|
|
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": "3445b0e7f3f9fc78bd95c9276d4e7131106999d6"
|
|
39
39
|
}
|