@expo/eas-build-job 1.0.136 → 1.0.138
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 +1 -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 +338 -38
- 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 +1 -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.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,aAAG,CAAC,MAAM,CAAC;IAChC,UAAU,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACnC,gBAAgB,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC,QAAQ,EAAE;IACnD,QAAQ,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACjC,WAAW,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,EAAE,CAAC;CACpC,CA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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;CAC/D,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\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"]}
|
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;IACX,kCAAa,CAAA;IACb,gCAAW,CAAA;IACX,gCAAW,CAAA;AACb,CAAC,EANW,iBAAiB,iCAAjB,iBAAiB,QAM5B;AAED,IAAY,YAGX;AAHD,WAAY,YAAY;IACtB,mCAAmB,CAAA;IACnB,+DAA+C,CAAA;AACjD,CAAC,EAHW,YAAY,4BAAZ,YAAY,QAGvB;AAsBY,QAAA,mBAAmB,GAAG,aAAG,CAAC,MAAM,CAAgB;IAC3D,IAAI,EAAE,aAAG,CAAC,MAAM,EAAE;SACf,KAAK,CAAC,GAAG,MAAM,CAAC,MAAM,CAAC,iBAAiB,CAAC,CAAC;SAC1C,QAAQ,EAAE;CACd,CAAC;KACC,IAAI,CAAC,aAAG,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,i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AK,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,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,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C,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;AAQU,QAAA,mCAAmC,GAAG,OAAC,CAAC,MAAM,CAAC;IAC1D,KAAK,EAAE,OAAC,CAAC,MAAM,CACb,OAAC,CAAC,MAAM,EAAE,EACV,OAAC,CAAC,MAAM,CAAC;QACP,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE;QAClB,OAAO,EAAE,OAAC,CAAC,MAAM,CAAC,OAAC,CAAC,MAAM,EAAE,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC;KACrD,CAAC,CACH;IACD,MAAM,EAAE,OAAC;SACN,MAAM,CAAC;QACN,UAAU,EAAE,OAAC,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,cAAc,EAAE,mBAAmB,CAAC,CAAC;QACjE,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE;QACf,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE;KAChB,CAAC;QACF,mFAAmF;SAClF,QAAQ,EAAE;IACb,GAAG,EAAE,OAAC,CAAC,MAAM,CAAC,OAAC,CAAC,MAAM,EAAE,CAAC;CAC1B,CAAC,CAAC","sourcesContent":["import Joi from 'joi';\nimport { z } from 'zod';\n\nimport { BuildPhase, BuildPhaseResult } from './logs';\n\nexport enum BuildMode {\n BUILD = 'build',\n RESIGN = 'resign',\n CUSTOM = 'custom',\n REPACK = 'repack',\n}\n\nexport enum Workflow {\n GENERIC = 'generic',\n MANAGED = 'managed',\n UNKNOWN = 'unknown',\n}\n\nexport enum Platform {\n ANDROID = 'android',\n IOS = 'ios',\n}\n\nexport enum ArchiveSourceType {\n NONE = 'NONE',\n URL = 'URL',\n PATH = 'PATH',\n GCS = 'GCS',\n GIT = 'GIT',\n}\n\nexport enum BuildTrigger {\n EAS_CLI = 'EAS_CLI',\n GIT_BASED_INTEGRATION = 'GIT_BASED_INTEGRATION',\n}\n\nexport type ArchiveSource =\n | { type: ArchiveSourceType.NONE }\n | { type: ArchiveSourceType.GCS; bucketKey: string; metadataLocation?: string }\n | { type: ArchiveSourceType.URL; url: string }\n | { type: ArchiveSourceType.PATH; path: string }\n | {\n type: ArchiveSourceType.GIT;\n /**\n * Url that can be used to clone repository.\n * It should contain embedded credentials for private registries.\n */\n repositoryUrl: string;\n /** A Git ref - points to a branch head, tag head or a branch name. */\n gitRef: string | null;\n /**\n * Git commit hash.\n */\n gitCommitHash: string;\n };\n\nexport const ArchiveSourceSchema = Joi.object<ArchiveSource>({\n type: Joi.string()\n .valid(...Object.values(ArchiveSourceType))\n .required(),\n})\n .when(Joi.object({ type: ArchiveSourceType.GCS }).unknown(), {\n then: Joi.object({\n type: Joi.string().valid(ArchiveSourceType.GCS).required(),\n bucketKey: Joi.string().required(),\n metadataLocation: Joi.string(),\n }),\n })\n .when(Joi.object({ type: ArchiveSourceType.URL }).unknown(), {\n then: Joi.object({\n type: Joi.string().valid(ArchiveSourceType.URL).required(),\n url: Joi.string().uri().required(),\n }),\n })\n .when(Joi.object({ type: ArchiveSourceType.GIT }).unknown(), {\n then: Joi.object({\n type: Joi.string().valid(ArchiveSourceType.GIT).required(),\n repositoryUrl: Joi.string().required(),\n gitCommitHash: Joi.string().required(),\n gitRef: Joi.string().allow(null).required(),\n }),\n })\n .when(Joi.object({ type: ArchiveSourceType.PATH }).unknown(), {\n then: Joi.object({\n type: Joi.string().valid(ArchiveSourceType.PATH).required(),\n path: Joi.string().required(),\n }),\n });\n\nexport const ArchiveSourceSchemaZ = z.discriminatedUnion('type', [\n z.object({\n type: z.literal(ArchiveSourceType.GIT),\n repositoryUrl: z.string().url(),\n gitRef: z.string().nullable(),\n gitCommitHash: z.string(),\n }),\n z.object({\n type: z.literal(ArchiveSourceType.PATH),\n path: z.string(),\n }),\n z.object({\n type: z.literal(ArchiveSourceType.URL),\n url: z.string().url(),\n }),\n z.object({\n type: z.literal(ArchiveSourceType.GCS),\n bucketKey: z.string(),\n metadataLocation: z.string().optional(),\n }),\n]);\n\nexport type Env = Record<string, string>;\nexport const EnvSchema = Joi.object().pattern(Joi.string(), Joi.string());\n\nexport type EnvironmentSecret = {\n name: string;\n type: EnvironmentSecretType;\n value: string;\n};\nexport enum EnvironmentSecretType {\n STRING = 'string',\n FILE = 'file',\n}\nexport const EnvironmentSecretsSchema = Joi.array().items(\n Joi.object({\n name: Joi.string().required(),\n value: Joi.string().allow('').required(),\n type: Joi.string()\n .valid(...Object.values(EnvironmentSecretType))\n .required(),\n })\n);\nexport const EnvironmentSecretZ = z.object({\n name: z.string(),\n value: z.string(),\n type: z.nativeEnum(EnvironmentSecretType),\n});\n\nexport interface Cache {\n disabled: boolean;\n clear: boolean;\n key?: string;\n /**\n * @deprecated We don't cache anything by default anymore.\n */\n cacheDefaultPaths?: boolean;\n /**\n * @deprecated We use paths now since there is no default caching anymore.\n */\n customPaths?: string[];\n paths: string[];\n}\n\nexport const CacheSchema = Joi.object({\n disabled: Joi.boolean().default(false),\n clear: Joi.boolean().default(false),\n key: Joi.string().allow('').max(128),\n cacheDefaultPaths: Joi.boolean(),\n customPaths: Joi.array().items(Joi.string()),\n paths: Joi.array().items(Joi.string()).default([]),\n});\n\nexport interface BuildPhaseStats {\n buildPhase: BuildPhase;\n result: BuildPhaseResult;\n durationMs: number;\n}\n\nexport const StaticWorkflowInterpolationContextZ = z.object({\n needs: z.record(\n z.string(),\n z.object({\n status: z.string(),\n outputs: z.record(z.string(), z.string().nullable()),\n })\n ),\n github: z\n .object({\n event_name: z.enum(['push', 'pull_request', 'workflow_dispatch']),\n sha: z.string(),\n ref: z.string(),\n })\n // We need to .optional() to support jobs that are not triggered by a GitHub event.\n .optional(),\n env: z.record(z.string()),\n});\n\nexport type StaticWorkflowInterpolationContext = z.infer<\n typeof StaticWorkflowInterpolationContextZ\n>;\n\nexport type DynamicInterpolationContext = {\n success: () => boolean;\n failure: () => boolean;\n always: () => boolean;\n never: () => boolean;\n fromJSON: (value: string) => unknown;\n toJSON: (value: unknown) => string;\n};\n\nexport type WorkflowInterpolationContext = StaticWorkflowInterpolationContext &\n DynamicInterpolationContext;\n"]}
|
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,54 @@ 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
|
+
}>>;
|
|
122
170
|
}, {
|
|
123
171
|
customBuildConfig: z.ZodObject<{
|
|
124
172
|
path: z.ZodString;
|
|
@@ -128,6 +176,7 @@ export declare namespace Generic {
|
|
|
128
176
|
path: string;
|
|
129
177
|
}>;
|
|
130
178
|
steps: z.ZodOptional<z.ZodNever>;
|
|
179
|
+
outputs: z.ZodOptional<z.ZodNever>;
|
|
131
180
|
}>, "strip", z.ZodTypeAny, {
|
|
132
181
|
builderEnvironment: {
|
|
133
182
|
env: Record<string, string>;
|
|
@@ -171,8 +220,21 @@ export declare namespace Generic {
|
|
|
171
220
|
};
|
|
172
221
|
expoDevUrl: string;
|
|
173
222
|
type?: undefined;
|
|
223
|
+
outputs?: undefined;
|
|
174
224
|
platform?: undefined;
|
|
175
225
|
loggerLevel?: LoggerLevel | undefined;
|
|
226
|
+
workflowInterpolationContext?: {
|
|
227
|
+
needs: Record<string, {
|
|
228
|
+
status: string;
|
|
229
|
+
outputs: Record<string, string | null>;
|
|
230
|
+
}>;
|
|
231
|
+
env: Record<string, string>;
|
|
232
|
+
github?: {
|
|
233
|
+
event_name: "push" | "pull_request" | "workflow_dispatch";
|
|
234
|
+
sha: string;
|
|
235
|
+
ref: string;
|
|
236
|
+
} | undefined;
|
|
237
|
+
} | undefined;
|
|
176
238
|
steps?: undefined;
|
|
177
239
|
}, {
|
|
178
240
|
builderEnvironment: {
|
|
@@ -217,8 +279,21 @@ export declare namespace Generic {
|
|
|
217
279
|
};
|
|
218
280
|
expoDevUrl: string;
|
|
219
281
|
type?: undefined;
|
|
282
|
+
outputs?: undefined;
|
|
220
283
|
platform?: undefined;
|
|
221
284
|
loggerLevel?: LoggerLevel | undefined;
|
|
285
|
+
workflowInterpolationContext?: {
|
|
286
|
+
needs: Record<string, {
|
|
287
|
+
status: string;
|
|
288
|
+
outputs: Record<string, string | null>;
|
|
289
|
+
}>;
|
|
290
|
+
env: Record<string, string>;
|
|
291
|
+
github?: {
|
|
292
|
+
event_name: "push" | "pull_request" | "workflow_dispatch";
|
|
293
|
+
sha: string;
|
|
294
|
+
ref: string;
|
|
295
|
+
} | undefined;
|
|
296
|
+
} | undefined;
|
|
222
297
|
steps?: undefined;
|
|
223
298
|
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
224
299
|
projectArchive: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
@@ -336,6 +411,54 @@ export declare namespace Generic {
|
|
|
336
411
|
type: z.ZodOptional<z.ZodNever>;
|
|
337
412
|
triggeredBy: z.ZodLiteral<BuildTrigger.GIT_BASED_INTEGRATION>;
|
|
338
413
|
loggerLevel: z.ZodOptional<z.ZodNativeEnum<typeof LoggerLevel>>;
|
|
414
|
+
workflowInterpolationContext: z.ZodOptional<z.ZodObject<{
|
|
415
|
+
needs: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
416
|
+
status: z.ZodString;
|
|
417
|
+
outputs: z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodString>>;
|
|
418
|
+
}, "strip", z.ZodTypeAny, {
|
|
419
|
+
status: string;
|
|
420
|
+
outputs: Record<string, string | null>;
|
|
421
|
+
}, {
|
|
422
|
+
status: string;
|
|
423
|
+
outputs: Record<string, string | null>;
|
|
424
|
+
}>>;
|
|
425
|
+
github: z.ZodOptional<z.ZodObject<{
|
|
426
|
+
event_name: z.ZodEnum<["push", "pull_request", "workflow_dispatch"]>;
|
|
427
|
+
sha: z.ZodString;
|
|
428
|
+
ref: z.ZodString;
|
|
429
|
+
}, "strip", z.ZodTypeAny, {
|
|
430
|
+
event_name: "push" | "pull_request" | "workflow_dispatch";
|
|
431
|
+
sha: string;
|
|
432
|
+
ref: string;
|
|
433
|
+
}, {
|
|
434
|
+
event_name: "push" | "pull_request" | "workflow_dispatch";
|
|
435
|
+
sha: string;
|
|
436
|
+
ref: string;
|
|
437
|
+
}>>;
|
|
438
|
+
env: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
439
|
+
}, "strip", z.ZodTypeAny, {
|
|
440
|
+
needs: Record<string, {
|
|
441
|
+
status: string;
|
|
442
|
+
outputs: Record<string, string | null>;
|
|
443
|
+
}>;
|
|
444
|
+
env: Record<string, string>;
|
|
445
|
+
github?: {
|
|
446
|
+
event_name: "push" | "pull_request" | "workflow_dispatch";
|
|
447
|
+
sha: string;
|
|
448
|
+
ref: string;
|
|
449
|
+
} | undefined;
|
|
450
|
+
}, {
|
|
451
|
+
needs: Record<string, {
|
|
452
|
+
status: string;
|
|
453
|
+
outputs: Record<string, string | null>;
|
|
454
|
+
}>;
|
|
455
|
+
env: Record<string, string>;
|
|
456
|
+
github?: {
|
|
457
|
+
event_name: "push" | "pull_request" | "workflow_dispatch";
|
|
458
|
+
sha: string;
|
|
459
|
+
ref: string;
|
|
460
|
+
} | undefined;
|
|
461
|
+
}>>;
|
|
339
462
|
}, {
|
|
340
463
|
customBuildConfig: z.ZodOptional<z.ZodNever>;
|
|
341
464
|
steps: z.ZodArray<z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
|
|
@@ -362,6 +485,10 @@ export declare namespace Generic {
|
|
|
362
485
|
}>, "strip", z.ZodTypeAny, {
|
|
363
486
|
run: string;
|
|
364
487
|
name?: string | undefined;
|
|
488
|
+
outputs?: {
|
|
489
|
+
name: string;
|
|
490
|
+
required?: boolean | undefined;
|
|
491
|
+
}[] | undefined;
|
|
365
492
|
env?: Record<string, string> | undefined;
|
|
366
493
|
id?: string | undefined;
|
|
367
494
|
if?: string | undefined;
|
|
@@ -369,13 +496,13 @@ export declare namespace Generic {
|
|
|
369
496
|
uses?: undefined;
|
|
370
497
|
with?: undefined;
|
|
371
498
|
shell?: string | undefined;
|
|
499
|
+
}, {
|
|
500
|
+
run: string;
|
|
501
|
+
name?: string | undefined;
|
|
372
502
|
outputs?: {
|
|
373
503
|
name: string;
|
|
374
504
|
required?: boolean | undefined;
|
|
375
505
|
}[] | undefined;
|
|
376
|
-
}, {
|
|
377
|
-
run: string;
|
|
378
|
-
name?: string | undefined;
|
|
379
506
|
env?: Record<string, string> | undefined;
|
|
380
507
|
id?: string | undefined;
|
|
381
508
|
if?: string | undefined;
|
|
@@ -383,10 +510,6 @@ export declare namespace Generic {
|
|
|
383
510
|
uses?: undefined;
|
|
384
511
|
with?: undefined;
|
|
385
512
|
shell?: string | undefined;
|
|
386
|
-
outputs?: {
|
|
387
|
-
name: string;
|
|
388
|
-
required?: boolean | undefined;
|
|
389
|
-
}[] | undefined;
|
|
390
513
|
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
391
514
|
id: z.ZodOptional<z.ZodString>;
|
|
392
515
|
if: z.ZodOptional<z.ZodString>;
|
|
@@ -402,6 +525,7 @@ export declare namespace Generic {
|
|
|
402
525
|
}>, "strip", z.ZodTypeAny, {
|
|
403
526
|
uses: string;
|
|
404
527
|
name?: string | undefined;
|
|
528
|
+
outputs?: undefined;
|
|
405
529
|
env?: Record<string, string> | undefined;
|
|
406
530
|
id?: string | undefined;
|
|
407
531
|
if?: string | undefined;
|
|
@@ -409,10 +533,10 @@ export declare namespace Generic {
|
|
|
409
533
|
with?: Record<string, string | number | Record<string, any>> | undefined;
|
|
410
534
|
run?: undefined;
|
|
411
535
|
shell?: undefined;
|
|
412
|
-
outputs?: undefined;
|
|
413
536
|
}, {
|
|
414
537
|
uses: string;
|
|
415
538
|
name?: string | undefined;
|
|
539
|
+
outputs?: undefined;
|
|
416
540
|
env?: Record<string, string> | undefined;
|
|
417
541
|
id?: string | undefined;
|
|
418
542
|
if?: string | undefined;
|
|
@@ -420,8 +544,8 @@ export declare namespace Generic {
|
|
|
420
544
|
with?: Record<string, string | number | Record<string, any>> | undefined;
|
|
421
545
|
run?: undefined;
|
|
422
546
|
shell?: undefined;
|
|
423
|
-
outputs?: undefined;
|
|
424
547
|
}>]>, "many">;
|
|
548
|
+
outputs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
425
549
|
}>, "strip", z.ZodTypeAny, {
|
|
426
550
|
builderEnvironment: {
|
|
427
551
|
env: Record<string, string>;
|
|
@@ -464,6 +588,7 @@ export declare namespace Generic {
|
|
|
464
588
|
steps: ({
|
|
465
589
|
uses: string;
|
|
466
590
|
name?: string | undefined;
|
|
591
|
+
outputs?: undefined;
|
|
467
592
|
env?: Record<string, string> | undefined;
|
|
468
593
|
id?: string | undefined;
|
|
469
594
|
if?: string | undefined;
|
|
@@ -471,10 +596,13 @@ export declare namespace Generic {
|
|
|
471
596
|
with?: Record<string, string | number | Record<string, any>> | undefined;
|
|
472
597
|
run?: undefined;
|
|
473
598
|
shell?: undefined;
|
|
474
|
-
outputs?: undefined;
|
|
475
599
|
} | {
|
|
476
600
|
run: string;
|
|
477
601
|
name?: string | undefined;
|
|
602
|
+
outputs?: {
|
|
603
|
+
name: string;
|
|
604
|
+
required?: boolean | undefined;
|
|
605
|
+
}[] | undefined;
|
|
478
606
|
env?: Record<string, string> | undefined;
|
|
479
607
|
id?: string | undefined;
|
|
480
608
|
if?: string | undefined;
|
|
@@ -482,15 +610,24 @@ export declare namespace Generic {
|
|
|
482
610
|
uses?: undefined;
|
|
483
611
|
with?: undefined;
|
|
484
612
|
shell?: string | undefined;
|
|
485
|
-
outputs?: {
|
|
486
|
-
name: string;
|
|
487
|
-
required?: boolean | undefined;
|
|
488
|
-
}[] | undefined;
|
|
489
613
|
})[];
|
|
490
614
|
type?: undefined;
|
|
615
|
+
outputs?: Record<string, string> | undefined;
|
|
491
616
|
platform?: undefined;
|
|
492
617
|
customBuildConfig?: undefined;
|
|
493
618
|
loggerLevel?: LoggerLevel | undefined;
|
|
619
|
+
workflowInterpolationContext?: {
|
|
620
|
+
needs: Record<string, {
|
|
621
|
+
status: string;
|
|
622
|
+
outputs: Record<string, string | null>;
|
|
623
|
+
}>;
|
|
624
|
+
env: Record<string, string>;
|
|
625
|
+
github?: {
|
|
626
|
+
event_name: "push" | "pull_request" | "workflow_dispatch";
|
|
627
|
+
sha: string;
|
|
628
|
+
ref: string;
|
|
629
|
+
} | undefined;
|
|
630
|
+
} | undefined;
|
|
494
631
|
}, {
|
|
495
632
|
builderEnvironment: {
|
|
496
633
|
env: Record<string, string>;
|
|
@@ -533,6 +670,7 @@ export declare namespace Generic {
|
|
|
533
670
|
steps: ({
|
|
534
671
|
uses: string;
|
|
535
672
|
name?: string | undefined;
|
|
673
|
+
outputs?: undefined;
|
|
536
674
|
env?: Record<string, string> | undefined;
|
|
537
675
|
id?: string | undefined;
|
|
538
676
|
if?: string | undefined;
|
|
@@ -540,10 +678,13 @@ export declare namespace Generic {
|
|
|
540
678
|
with?: Record<string, string | number | Record<string, any>> | undefined;
|
|
541
679
|
run?: undefined;
|
|
542
680
|
shell?: undefined;
|
|
543
|
-
outputs?: undefined;
|
|
544
681
|
} | {
|
|
545
682
|
run: string;
|
|
546
683
|
name?: string | undefined;
|
|
684
|
+
outputs?: {
|
|
685
|
+
name: string;
|
|
686
|
+
required?: boolean | undefined;
|
|
687
|
+
}[] | undefined;
|
|
547
688
|
env?: Record<string, string> | undefined;
|
|
548
689
|
id?: string | undefined;
|
|
549
690
|
if?: string | undefined;
|
|
@@ -551,15 +692,24 @@ export declare namespace Generic {
|
|
|
551
692
|
uses?: undefined;
|
|
552
693
|
with?: undefined;
|
|
553
694
|
shell?: string | undefined;
|
|
554
|
-
outputs?: {
|
|
555
|
-
name: string;
|
|
556
|
-
required?: boolean | undefined;
|
|
557
|
-
}[] | undefined;
|
|
558
695
|
})[];
|
|
559
696
|
type?: undefined;
|
|
697
|
+
outputs?: Record<string, string> | undefined;
|
|
560
698
|
platform?: undefined;
|
|
561
699
|
customBuildConfig?: undefined;
|
|
562
700
|
loggerLevel?: LoggerLevel | undefined;
|
|
701
|
+
workflowInterpolationContext?: {
|
|
702
|
+
needs: Record<string, {
|
|
703
|
+
status: string;
|
|
704
|
+
outputs: Record<string, string | null>;
|
|
705
|
+
}>;
|
|
706
|
+
env: Record<string, string>;
|
|
707
|
+
github?: {
|
|
708
|
+
event_name: "push" | "pull_request" | "workflow_dispatch";
|
|
709
|
+
sha: string;
|
|
710
|
+
ref: string;
|
|
711
|
+
} | undefined;
|
|
712
|
+
} | undefined;
|
|
563
713
|
}>]>;
|
|
564
714
|
type PartialJob = z.infer<typeof PartialJobZ>;
|
|
565
715
|
const PartialJobZ: z.ZodUnion<[z.ZodObject<{
|
|
@@ -678,6 +828,54 @@ export declare namespace Generic {
|
|
|
678
828
|
type: z.ZodOptional<z.ZodOptional<z.ZodNever>>;
|
|
679
829
|
triggeredBy: z.ZodOptional<z.ZodLiteral<BuildTrigger.GIT_BASED_INTEGRATION>>;
|
|
680
830
|
loggerLevel: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof LoggerLevel>>>;
|
|
831
|
+
workflowInterpolationContext: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
832
|
+
needs: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
833
|
+
status: z.ZodString;
|
|
834
|
+
outputs: z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodString>>;
|
|
835
|
+
}, "strip", z.ZodTypeAny, {
|
|
836
|
+
status: string;
|
|
837
|
+
outputs: Record<string, string | null>;
|
|
838
|
+
}, {
|
|
839
|
+
status: string;
|
|
840
|
+
outputs: Record<string, string | null>;
|
|
841
|
+
}>>;
|
|
842
|
+
github: z.ZodOptional<z.ZodObject<{
|
|
843
|
+
event_name: z.ZodEnum<["push", "pull_request", "workflow_dispatch"]>;
|
|
844
|
+
sha: z.ZodString;
|
|
845
|
+
ref: z.ZodString;
|
|
846
|
+
}, "strip", z.ZodTypeAny, {
|
|
847
|
+
event_name: "push" | "pull_request" | "workflow_dispatch";
|
|
848
|
+
sha: string;
|
|
849
|
+
ref: string;
|
|
850
|
+
}, {
|
|
851
|
+
event_name: "push" | "pull_request" | "workflow_dispatch";
|
|
852
|
+
sha: string;
|
|
853
|
+
ref: string;
|
|
854
|
+
}>>;
|
|
855
|
+
env: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
856
|
+
}, "strip", z.ZodTypeAny, {
|
|
857
|
+
needs: Record<string, {
|
|
858
|
+
status: string;
|
|
859
|
+
outputs: Record<string, string | null>;
|
|
860
|
+
}>;
|
|
861
|
+
env: Record<string, string>;
|
|
862
|
+
github?: {
|
|
863
|
+
event_name: "push" | "pull_request" | "workflow_dispatch";
|
|
864
|
+
sha: string;
|
|
865
|
+
ref: string;
|
|
866
|
+
} | undefined;
|
|
867
|
+
}, {
|
|
868
|
+
needs: Record<string, {
|
|
869
|
+
status: string;
|
|
870
|
+
outputs: Record<string, string | null>;
|
|
871
|
+
}>;
|
|
872
|
+
env: Record<string, string>;
|
|
873
|
+
github?: {
|
|
874
|
+
event_name: "push" | "pull_request" | "workflow_dispatch";
|
|
875
|
+
sha: string;
|
|
876
|
+
ref: string;
|
|
877
|
+
} | undefined;
|
|
878
|
+
}>>>;
|
|
681
879
|
customBuildConfig: z.ZodOptional<z.ZodObject<{
|
|
682
880
|
path: z.ZodString;
|
|
683
881
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -686,8 +884,10 @@ export declare namespace Generic {
|
|
|
686
884
|
path: string;
|
|
687
885
|
}>>;
|
|
688
886
|
steps: z.ZodOptional<z.ZodOptional<z.ZodNever>>;
|
|
887
|
+
outputs: z.ZodOptional<z.ZodOptional<z.ZodNever>>;
|
|
689
888
|
}, "strip", z.ZodTypeAny, {
|
|
690
889
|
type?: undefined;
|
|
890
|
+
outputs?: undefined;
|
|
691
891
|
builderEnvironment?: {
|
|
692
892
|
env: Record<string, string>;
|
|
693
893
|
image: string;
|
|
@@ -731,9 +931,22 @@ export declare namespace Generic {
|
|
|
731
931
|
} | undefined;
|
|
732
932
|
loggerLevel?: LoggerLevel | undefined;
|
|
733
933
|
expoDevUrl?: string | undefined;
|
|
934
|
+
workflowInterpolationContext?: {
|
|
935
|
+
needs: Record<string, {
|
|
936
|
+
status: string;
|
|
937
|
+
outputs: Record<string, string | null>;
|
|
938
|
+
}>;
|
|
939
|
+
env: Record<string, string>;
|
|
940
|
+
github?: {
|
|
941
|
+
event_name: "push" | "pull_request" | "workflow_dispatch";
|
|
942
|
+
sha: string;
|
|
943
|
+
ref: string;
|
|
944
|
+
} | undefined;
|
|
945
|
+
} | undefined;
|
|
734
946
|
steps?: undefined;
|
|
735
947
|
}, {
|
|
736
948
|
type?: undefined;
|
|
949
|
+
outputs?: undefined;
|
|
737
950
|
builderEnvironment?: {
|
|
738
951
|
env: Record<string, string>;
|
|
739
952
|
image: string;
|
|
@@ -777,6 +990,18 @@ export declare namespace Generic {
|
|
|
777
990
|
} | undefined;
|
|
778
991
|
loggerLevel?: LoggerLevel | undefined;
|
|
779
992
|
expoDevUrl?: string | undefined;
|
|
993
|
+
workflowInterpolationContext?: {
|
|
994
|
+
needs: Record<string, {
|
|
995
|
+
status: string;
|
|
996
|
+
outputs: Record<string, string | null>;
|
|
997
|
+
}>;
|
|
998
|
+
env: Record<string, string>;
|
|
999
|
+
github?: {
|
|
1000
|
+
event_name: "push" | "pull_request" | "workflow_dispatch";
|
|
1001
|
+
sha: string;
|
|
1002
|
+
ref: string;
|
|
1003
|
+
} | undefined;
|
|
1004
|
+
} | undefined;
|
|
780
1005
|
steps?: undefined;
|
|
781
1006
|
}>, z.ZodObject<{
|
|
782
1007
|
projectArchive: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
@@ -894,6 +1119,54 @@ export declare namespace Generic {
|
|
|
894
1119
|
type: z.ZodOptional<z.ZodOptional<z.ZodNever>>;
|
|
895
1120
|
triggeredBy: z.ZodOptional<z.ZodLiteral<BuildTrigger.GIT_BASED_INTEGRATION>>;
|
|
896
1121
|
loggerLevel: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof LoggerLevel>>>;
|
|
1122
|
+
workflowInterpolationContext: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
1123
|
+
needs: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1124
|
+
status: z.ZodString;
|
|
1125
|
+
outputs: z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodString>>;
|
|
1126
|
+
}, "strip", z.ZodTypeAny, {
|
|
1127
|
+
status: string;
|
|
1128
|
+
outputs: Record<string, string | null>;
|
|
1129
|
+
}, {
|
|
1130
|
+
status: string;
|
|
1131
|
+
outputs: Record<string, string | null>;
|
|
1132
|
+
}>>;
|
|
1133
|
+
github: z.ZodOptional<z.ZodObject<{
|
|
1134
|
+
event_name: z.ZodEnum<["push", "pull_request", "workflow_dispatch"]>;
|
|
1135
|
+
sha: z.ZodString;
|
|
1136
|
+
ref: z.ZodString;
|
|
1137
|
+
}, "strip", z.ZodTypeAny, {
|
|
1138
|
+
event_name: "push" | "pull_request" | "workflow_dispatch";
|
|
1139
|
+
sha: string;
|
|
1140
|
+
ref: string;
|
|
1141
|
+
}, {
|
|
1142
|
+
event_name: "push" | "pull_request" | "workflow_dispatch";
|
|
1143
|
+
sha: string;
|
|
1144
|
+
ref: string;
|
|
1145
|
+
}>>;
|
|
1146
|
+
env: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
1147
|
+
}, "strip", z.ZodTypeAny, {
|
|
1148
|
+
needs: Record<string, {
|
|
1149
|
+
status: string;
|
|
1150
|
+
outputs: Record<string, string | null>;
|
|
1151
|
+
}>;
|
|
1152
|
+
env: Record<string, string>;
|
|
1153
|
+
github?: {
|
|
1154
|
+
event_name: "push" | "pull_request" | "workflow_dispatch";
|
|
1155
|
+
sha: string;
|
|
1156
|
+
ref: string;
|
|
1157
|
+
} | undefined;
|
|
1158
|
+
}, {
|
|
1159
|
+
needs: Record<string, {
|
|
1160
|
+
status: string;
|
|
1161
|
+
outputs: Record<string, string | null>;
|
|
1162
|
+
}>;
|
|
1163
|
+
env: Record<string, string>;
|
|
1164
|
+
github?: {
|
|
1165
|
+
event_name: "push" | "pull_request" | "workflow_dispatch";
|
|
1166
|
+
sha: string;
|
|
1167
|
+
ref: string;
|
|
1168
|
+
} | undefined;
|
|
1169
|
+
}>>>;
|
|
897
1170
|
customBuildConfig: z.ZodOptional<z.ZodOptional<z.ZodNever>>;
|
|
898
1171
|
steps: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
|
|
899
1172
|
id: z.ZodOptional<z.ZodString>;
|
|
@@ -919,6 +1192,10 @@ export declare namespace Generic {
|
|
|
919
1192
|
}>, "strip", z.ZodTypeAny, {
|
|
920
1193
|
run: string;
|
|
921
1194
|
name?: string | undefined;
|
|
1195
|
+
outputs?: {
|
|
1196
|
+
name: string;
|
|
1197
|
+
required?: boolean | undefined;
|
|
1198
|
+
}[] | undefined;
|
|
922
1199
|
env?: Record<string, string> | undefined;
|
|
923
1200
|
id?: string | undefined;
|
|
924
1201
|
if?: string | undefined;
|
|
@@ -926,13 +1203,13 @@ export declare namespace Generic {
|
|
|
926
1203
|
uses?: undefined;
|
|
927
1204
|
with?: undefined;
|
|
928
1205
|
shell?: string | undefined;
|
|
1206
|
+
}, {
|
|
1207
|
+
run: string;
|
|
1208
|
+
name?: string | undefined;
|
|
929
1209
|
outputs?: {
|
|
930
1210
|
name: string;
|
|
931
1211
|
required?: boolean | undefined;
|
|
932
1212
|
}[] | undefined;
|
|
933
|
-
}, {
|
|
934
|
-
run: string;
|
|
935
|
-
name?: string | undefined;
|
|
936
1213
|
env?: Record<string, string> | undefined;
|
|
937
1214
|
id?: string | undefined;
|
|
938
1215
|
if?: string | undefined;
|
|
@@ -940,10 +1217,6 @@ export declare namespace Generic {
|
|
|
940
1217
|
uses?: undefined;
|
|
941
1218
|
with?: undefined;
|
|
942
1219
|
shell?: string | undefined;
|
|
943
|
-
outputs?: {
|
|
944
|
-
name: string;
|
|
945
|
-
required?: boolean | undefined;
|
|
946
|
-
}[] | undefined;
|
|
947
1220
|
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
948
1221
|
id: z.ZodOptional<z.ZodString>;
|
|
949
1222
|
if: z.ZodOptional<z.ZodString>;
|
|
@@ -959,6 +1232,7 @@ export declare namespace Generic {
|
|
|
959
1232
|
}>, "strip", z.ZodTypeAny, {
|
|
960
1233
|
uses: string;
|
|
961
1234
|
name?: string | undefined;
|
|
1235
|
+
outputs?: undefined;
|
|
962
1236
|
env?: Record<string, string> | undefined;
|
|
963
1237
|
id?: string | undefined;
|
|
964
1238
|
if?: string | undefined;
|
|
@@ -966,10 +1240,10 @@ export declare namespace Generic {
|
|
|
966
1240
|
with?: Record<string, string | number | Record<string, any>> | undefined;
|
|
967
1241
|
run?: undefined;
|
|
968
1242
|
shell?: undefined;
|
|
969
|
-
outputs?: undefined;
|
|
970
1243
|
}, {
|
|
971
1244
|
uses: string;
|
|
972
1245
|
name?: string | undefined;
|
|
1246
|
+
outputs?: undefined;
|
|
973
1247
|
env?: Record<string, string> | undefined;
|
|
974
1248
|
id?: string | undefined;
|
|
975
1249
|
if?: string | undefined;
|
|
@@ -977,10 +1251,11 @@ export declare namespace Generic {
|
|
|
977
1251
|
with?: Record<string, string | number | Record<string, any>> | undefined;
|
|
978
1252
|
run?: undefined;
|
|
979
1253
|
shell?: undefined;
|
|
980
|
-
outputs?: undefined;
|
|
981
1254
|
}>]>, "many">>;
|
|
1255
|
+
outputs: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>>;
|
|
982
1256
|
}, "strip", z.ZodTypeAny, {
|
|
983
1257
|
type?: undefined;
|
|
1258
|
+
outputs?: Record<string, string> | undefined;
|
|
984
1259
|
builderEnvironment?: {
|
|
985
1260
|
env: Record<string, string>;
|
|
986
1261
|
image: string;
|
|
@@ -1022,9 +1297,22 @@ export declare namespace Generic {
|
|
|
1022
1297
|
customBuildConfig?: undefined;
|
|
1023
1298
|
loggerLevel?: LoggerLevel | undefined;
|
|
1024
1299
|
expoDevUrl?: string | undefined;
|
|
1300
|
+
workflowInterpolationContext?: {
|
|
1301
|
+
needs: Record<string, {
|
|
1302
|
+
status: string;
|
|
1303
|
+
outputs: Record<string, string | null>;
|
|
1304
|
+
}>;
|
|
1305
|
+
env: Record<string, string>;
|
|
1306
|
+
github?: {
|
|
1307
|
+
event_name: "push" | "pull_request" | "workflow_dispatch";
|
|
1308
|
+
sha: string;
|
|
1309
|
+
ref: string;
|
|
1310
|
+
} | undefined;
|
|
1311
|
+
} | undefined;
|
|
1025
1312
|
steps?: ({
|
|
1026
1313
|
uses: string;
|
|
1027
1314
|
name?: string | undefined;
|
|
1315
|
+
outputs?: undefined;
|
|
1028
1316
|
env?: Record<string, string> | undefined;
|
|
1029
1317
|
id?: string | undefined;
|
|
1030
1318
|
if?: string | undefined;
|
|
@@ -1032,10 +1320,13 @@ export declare namespace Generic {
|
|
|
1032
1320
|
with?: Record<string, string | number | Record<string, any>> | undefined;
|
|
1033
1321
|
run?: undefined;
|
|
1034
1322
|
shell?: undefined;
|
|
1035
|
-
outputs?: undefined;
|
|
1036
1323
|
} | {
|
|
1037
1324
|
run: string;
|
|
1038
1325
|
name?: string | undefined;
|
|
1326
|
+
outputs?: {
|
|
1327
|
+
name: string;
|
|
1328
|
+
required?: boolean | undefined;
|
|
1329
|
+
}[] | undefined;
|
|
1039
1330
|
env?: Record<string, string> | undefined;
|
|
1040
1331
|
id?: string | undefined;
|
|
1041
1332
|
if?: string | undefined;
|
|
@@ -1043,13 +1334,10 @@ export declare namespace Generic {
|
|
|
1043
1334
|
uses?: undefined;
|
|
1044
1335
|
with?: undefined;
|
|
1045
1336
|
shell?: string | undefined;
|
|
1046
|
-
outputs?: {
|
|
1047
|
-
name: string;
|
|
1048
|
-
required?: boolean | undefined;
|
|
1049
|
-
}[] | undefined;
|
|
1050
1337
|
})[] | undefined;
|
|
1051
1338
|
}, {
|
|
1052
1339
|
type?: undefined;
|
|
1340
|
+
outputs?: Record<string, string> | undefined;
|
|
1053
1341
|
builderEnvironment?: {
|
|
1054
1342
|
env: Record<string, string>;
|
|
1055
1343
|
image: string;
|
|
@@ -1091,9 +1379,22 @@ export declare namespace Generic {
|
|
|
1091
1379
|
customBuildConfig?: undefined;
|
|
1092
1380
|
loggerLevel?: LoggerLevel | undefined;
|
|
1093
1381
|
expoDevUrl?: string | undefined;
|
|
1382
|
+
workflowInterpolationContext?: {
|
|
1383
|
+
needs: Record<string, {
|
|
1384
|
+
status: string;
|
|
1385
|
+
outputs: Record<string, string | null>;
|
|
1386
|
+
}>;
|
|
1387
|
+
env: Record<string, string>;
|
|
1388
|
+
github?: {
|
|
1389
|
+
event_name: "push" | "pull_request" | "workflow_dispatch";
|
|
1390
|
+
sha: string;
|
|
1391
|
+
ref: string;
|
|
1392
|
+
} | undefined;
|
|
1393
|
+
} | undefined;
|
|
1094
1394
|
steps?: ({
|
|
1095
1395
|
uses: string;
|
|
1096
1396
|
name?: string | undefined;
|
|
1397
|
+
outputs?: undefined;
|
|
1097
1398
|
env?: Record<string, string> | undefined;
|
|
1098
1399
|
id?: string | undefined;
|
|
1099
1400
|
if?: string | undefined;
|
|
@@ -1101,10 +1402,13 @@ export declare namespace Generic {
|
|
|
1101
1402
|
with?: Record<string, string | number | Record<string, any>> | undefined;
|
|
1102
1403
|
run?: undefined;
|
|
1103
1404
|
shell?: undefined;
|
|
1104
|
-
outputs?: undefined;
|
|
1105
1405
|
} | {
|
|
1106
1406
|
run: string;
|
|
1107
1407
|
name?: string | undefined;
|
|
1408
|
+
outputs?: {
|
|
1409
|
+
name: string;
|
|
1410
|
+
required?: boolean | undefined;
|
|
1411
|
+
}[] | undefined;
|
|
1108
1412
|
env?: Record<string, string> | undefined;
|
|
1109
1413
|
id?: string | undefined;
|
|
1110
1414
|
if?: string | undefined;
|
|
@@ -1112,10 +1416,6 @@ export declare namespace Generic {
|
|
|
1112
1416
|
uses?: undefined;
|
|
1113
1417
|
with?: undefined;
|
|
1114
1418
|
shell?: string | undefined;
|
|
1115
|
-
outputs?: {
|
|
1116
|
-
name: string;
|
|
1117
|
-
required?: boolean | undefined;
|
|
1118
|
-
}[] | undefined;
|
|
1119
1419
|
})[] | undefined;
|
|
1120
1420
|
}>]>;
|
|
1121
1421
|
}
|
package/dist/generic.js
CHANGED
|
@@ -34,16 +34,19 @@ 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(),
|
|
37
38
|
});
|
|
38
39
|
const PathJobZ = CommonJobZ.extend({
|
|
39
40
|
customBuildConfig: zod_1.z.object({
|
|
40
41
|
path: zod_1.z.string(),
|
|
41
42
|
}),
|
|
42
43
|
steps: zod_1.z.never().optional(),
|
|
44
|
+
outputs: zod_1.z.never().optional(),
|
|
43
45
|
});
|
|
44
46
|
const StepsJobZ = CommonJobZ.extend({
|
|
45
47
|
customBuildConfig: zod_1.z.never().optional(),
|
|
46
48
|
steps: zod_1.z.array(step_1.StepZ).min(1),
|
|
49
|
+
outputs: zod_1.z.record(zod_1.z.string()).optional(),
|
|
47
50
|
});
|
|
48
51
|
Generic.JobZ = zod_1.z.union([PathJobZ, StepsJobZ]);
|
|
49
52
|
Generic.PartialJobZ = zod_1.z.union([PathJobZ.partial(), StepsJobZ.partial()]);
|
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,CAmDvB;AAnDD,WAAiB,OAAO;IACtB,MAAM,yBAAyB,GAAG,OAAC,CAAC,MAAM,CAAC;QACzC,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE;QACjB,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QAC3B,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QAC3B,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QAC3B,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QAC1B,GAAG,EAAE,OAAC,CAAC,MAAM,CAAC,OAAC,CAAC,MAAM,EAAE,CAAC;QACzB,QAAQ;QACR,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QAC1B,QAAQ;QACR,OAAO,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QAC9B,QAAQ,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QAC/B,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;KACjC,CAAC,CAAC;IAEH,MAAM,UAAU,GAAG,OAAC,CAAC,MAAM,CAAC;QAC1B,cAAc,EAAE,6BAAoB;QACpC,OAAO,EAAE,OAAC,CAAC,MAAM,CAAC;YAChB,gBAAgB,EAAE,OAAC,CAAC,MAAM,EAAE;YAC5B,kBAAkB,EAAE,OAAC,CAAC,KAAK,CAA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EAAE,SAAS,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC;AAChF,CAAC,EAnDgB,OAAO,uBAAP,OAAO,QAmDvB","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\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.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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AM,CAAC,MAAM,CAAC,oBAAW,CAAC,CAAC;CAC/D,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\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"]}
|
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.138",
|
|
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": "26d84bf5986167f7e24524a98db0ec222b5e8b6c"
|
|
39
39
|
}
|