eas-cli 16.8.0 → 16.10.0

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.
Files changed (34) hide show
  1. package/README.md +105 -80
  2. package/build/build/android/prepareJob.js +1 -9
  3. package/build/build/context.d.ts +0 -1
  4. package/build/build/createContext.d.ts +1 -2
  5. package/build/build/createContext.js +1 -2
  6. package/build/build/ios/prepareJob.js +1 -9
  7. package/build/build/runBuildAndSubmit.d.ts +0 -1
  8. package/build/build/runBuildAndSubmit.js +3 -3
  9. package/build/build/types.d.ts +0 -1
  10. package/build/commandUtils/workflows.d.ts +20 -0
  11. package/build/commandUtils/workflows.js +21 -0
  12. package/build/commands/build/dev.js +0 -1
  13. package/build/commands/build/index.d.ts +0 -1
  14. package/build/commands/build/index.js +0 -6
  15. package/build/commands/build/inspect.js +0 -1
  16. package/build/commands/build/internal.js +0 -1
  17. package/build/commands/project/onboarding.js +0 -1
  18. package/build/commands/submit/internal.js +1 -0
  19. package/build/commands/submit.d.ts +1 -0
  20. package/build/commands/submit.js +8 -1
  21. package/build/commands/workflow/cancel.d.ts +13 -0
  22. package/build/commands/workflow/cancel.js +84 -0
  23. package/build/commands/workflow/runs.js +2 -17
  24. package/build/graphql/generated.d.ts +24 -2
  25. package/build/graphql/generated.js +2 -0
  26. package/build/graphql/mutations/WorkflowRunMutation.d.ts +3 -0
  27. package/build/graphql/mutations/WorkflowRunMutation.js +16 -0
  28. package/build/graphql/queries/AppQuery.js +1 -1
  29. package/build/graphql/queries/WorkflowRunQuery.js +1 -1
  30. package/build/submit/context.d.ts +2 -0
  31. package/build/submit/context.js +12 -1
  32. package/build/submit/ios/IosSubmitter.js +2 -1
  33. package/oclif.manifest.json +30 -8
  34. package/package.json +3 -3
@@ -1,12 +1,13 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.createSubmissionContextAsync = void 0;
4
+ const eas_build_job_1 = require("@expo/eas-build-job");
4
5
  const uuid_1 = require("uuid");
5
6
  const AnalyticsManager_1 = require("../analytics/AnalyticsManager");
6
7
  const context_1 = require("../credentials/context");
7
8
  const projectUtils_1 = require("../project/projectUtils");
8
9
  async function createSubmissionContextAsync(params) {
9
- const { applicationIdentifier, projectDir, nonInteractive, actor, exp, projectId, graphqlClient, analytics, vcsClient, } = params;
10
+ const { applicationIdentifier, projectDir, nonInteractive, actor, exp, projectId, graphqlClient, analytics, vcsClient, profile, groups: groupsFromParams, platform, } = params;
10
11
  const { env, ...rest } = params;
11
12
  const projectName = exp.slug;
12
13
  const account = await (0, projectUtils_1.getOwnerAccountForProjectIdAsync)(graphqlClient, projectId);
@@ -23,6 +24,15 @@ async function createSubmissionContextAsync(params) {
23
24
  vcsClient,
24
25
  });
25
26
  }
27
+ let groups;
28
+ if (platform === eas_build_job_1.Platform.IOS) {
29
+ groups = (groupsFromParams ??
30
+ profile.groups ??
31
+ []);
32
+ }
33
+ else {
34
+ groups = undefined;
35
+ }
26
36
  const analyticsEventProperties = {
27
37
  tracking_id: (0, uuid_1.v4)(),
28
38
  platform: params.platform,
@@ -34,6 +44,7 @@ async function createSubmissionContextAsync(params) {
34
44
  ...rest,
35
45
  accountName: account.name,
36
46
  credentialsCtx,
47
+ groups,
37
48
  projectName,
38
49
  user: actor,
39
50
  analyticsEventProperties,
@@ -62,11 +62,12 @@ class IosSubmitter extends BaseSubmitter_1.default {
62
62
  formatSubmissionConfig(options, { credentials }) {
63
63
  const { appSpecificPassword, ascApiKeyResult } = credentials;
64
64
  const { appleIdUsername, ascAppIdentifier } = options;
65
- const { isVerboseFastlaneEnabled } = this.ctx;
65
+ const { isVerboseFastlaneEnabled, groups } = this.ctx;
66
66
  return {
67
67
  ascAppIdentifier,
68
68
  appleIdUsername,
69
69
  isVerboseFastlaneEnabled,
70
+ groups,
70
71
  ...(appSpecificPassword ? this.formatAppSpecificPassword(appSpecificPassword) : null),
71
72
  ...(ascApiKeyResult?.result ? this.formatAscApiKeyResult(ascApiKeyResult.result) : null),
72
73
  };
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "16.8.0",
2
+ "version": "16.10.0",
3
3
  "commands": {
4
4
  "analytics": {
5
5
  "id": "analytics",
@@ -198,6 +198,13 @@
198
198
  "description": "Enable verbose logging for the submission process",
199
199
  "allowNo": false
200
200
  },
201
+ "groups": {
202
+ "name": "groups",
203
+ "type": "option",
204
+ "char": "g",
205
+ "description": "Internal TestFlight testing groups to add the build to (iOS only). Learn more: https://developer.apple.com/help/app-store-connect/test-a-beta-version/add-internal-testers",
206
+ "multiple": true
207
+ },
201
208
  "non-interactive": {
202
209
  "name": "non-interactive",
203
210
  "type": "boolean",
@@ -906,13 +913,6 @@
906
913
  "description": "Prevent the build from updating credentials in non-interactive mode",
907
914
  "allowNo": false
908
915
  },
909
- "repack": {
910
- "name": "repack",
911
- "type": "boolean",
912
- "description": "Use the golden dev client build repack flow as it works for onboarding",
913
- "hidden": true,
914
- "allowNo": false
915
- },
916
916
  "verbose-logs": {
917
917
  "name": "verbose-logs",
918
918
  "type": "boolean",
@@ -4149,6 +4149,28 @@
4149
4149
  "loggedIn": {}
4150
4150
  }
4151
4151
  },
4152
+ "workflow:cancel": {
4153
+ "id": "workflow:cancel",
4154
+ "description": "Cancel one or more workflow runs. If no workflow run IDs are provided, you will be prompted to select IN_PROGRESS runs to cancel.",
4155
+ "strict": false,
4156
+ "pluginName": "eas-cli",
4157
+ "pluginAlias": "eas-cli",
4158
+ "pluginType": "core",
4159
+ "aliases": [],
4160
+ "flags": {
4161
+ "non-interactive": {
4162
+ "name": "non-interactive",
4163
+ "type": "boolean",
4164
+ "description": "Run the command in non-interactive mode.",
4165
+ "allowNo": false
4166
+ }
4167
+ },
4168
+ "args": {},
4169
+ "contextDefinition": {
4170
+ "projectId": {},
4171
+ "loggedIn": {}
4172
+ }
4173
+ },
4152
4174
  "workflow:create": {
4153
4175
  "id": "workflow:create",
4154
4176
  "description": "create a new workflow configuration YAML file",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "eas-cli",
3
3
  "description": "EAS command line tool",
4
- "version": "16.8.0",
4
+ "version": "16.10.0",
5
5
  "author": "Expo <support@expo.dev>",
6
6
  "bin": {
7
7
  "eas": "./bin/run"
@@ -13,7 +13,7 @@
13
13
  "@expo/config": "10.0.6",
14
14
  "@expo/config-plugins": "9.0.12",
15
15
  "@expo/eas-build-job": "1.0.173",
16
- "@expo/eas-json": "16.8.0",
16
+ "@expo/eas-json": "16.9.0",
17
17
  "@expo/env": "^1.0.0",
18
18
  "@expo/json-file": "8.3.3",
19
19
  "@expo/logger": "1.0.117",
@@ -240,5 +240,5 @@
240
240
  "node": "20.11.0",
241
241
  "yarn": "1.22.21"
242
242
  },
243
- "gitHead": "f968654ffcc0c3351c397484be5942d6f835f9d8"
243
+ "gitHead": "046d8d75bb16ad94319da609bd536bd03d101681"
244
244
  }