@htgabriel/release-kit 0.1.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.
package/schema.json ADDED
@@ -0,0 +1,308 @@
1
+ {
2
+ "$ref": "#/definitions/ReleaseKitConfig",
3
+ "definitions": {
4
+ "ReleaseKitConfig": {
5
+ "type": "object",
6
+ "properties": {
7
+ "$schema": {
8
+ "type": "string"
9
+ },
10
+ "appDir": {
11
+ "type": "string",
12
+ "default": "."
13
+ },
14
+ "easOwner": {
15
+ "type": "string"
16
+ },
17
+ "platforms": {
18
+ "type": "array",
19
+ "items": {
20
+ "type": "string",
21
+ "enum": [
22
+ "android",
23
+ "ios"
24
+ ]
25
+ },
26
+ "minItems": 1
27
+ },
28
+ "locales": {
29
+ "type": "array",
30
+ "items": {
31
+ "type": "string"
32
+ },
33
+ "minItems": 1,
34
+ "default": [
35
+ "pt-BR"
36
+ ]
37
+ },
38
+ "notesDir": {
39
+ "type": "string",
40
+ "default": "release-notes"
41
+ },
42
+ "version": {
43
+ "type": "object",
44
+ "properties": {
45
+ "source": {
46
+ "type": "string",
47
+ "enum": [
48
+ "app.json",
49
+ "package.json"
50
+ ],
51
+ "default": "app.json"
52
+ }
53
+ },
54
+ "additionalProperties": false,
55
+ "default": {
56
+ "source": "app.json"
57
+ }
58
+ },
59
+ "git": {
60
+ "type": "object",
61
+ "properties": {
62
+ "releaseBranch": {
63
+ "type": "string",
64
+ "default": "main"
65
+ },
66
+ "tagFormat": {
67
+ "type": "string",
68
+ "default": "v{version}"
69
+ },
70
+ "requireClean": {
71
+ "type": "boolean",
72
+ "default": true
73
+ },
74
+ "requireSyncedWithRemote": {
75
+ "type": "boolean",
76
+ "default": true
77
+ },
78
+ "remote": {
79
+ "type": "string",
80
+ "default": "origin"
81
+ }
82
+ },
83
+ "additionalProperties": false,
84
+ "default": {}
85
+ },
86
+ "channels": {
87
+ "type": "object",
88
+ "additionalProperties": {
89
+ "type": "object",
90
+ "properties": {
91
+ "protected": {
92
+ "type": "boolean",
93
+ "default": false
94
+ },
95
+ "store": {
96
+ "type": "boolean",
97
+ "default": true
98
+ },
99
+ "buildProfile": {
100
+ "type": "string"
101
+ },
102
+ "submitProfile": {
103
+ "type": "string"
104
+ },
105
+ "easEnvironment": {
106
+ "type": "string"
107
+ },
108
+ "autoIncrement": {
109
+ "type": "boolean",
110
+ "default": true
111
+ },
112
+ "sentryUploadDisabled": {
113
+ "type": "boolean",
114
+ "default": false
115
+ },
116
+ "env": {
117
+ "type": "object",
118
+ "additionalProperties": {
119
+ "type": "string"
120
+ },
121
+ "default": {}
122
+ },
123
+ "ios": {
124
+ "type": "object",
125
+ "properties": {
126
+ "bundleId": {
127
+ "type": "string"
128
+ },
129
+ "ascAppId": {
130
+ "type": "string"
131
+ },
132
+ "appleTeamId": {
133
+ "type": "string"
134
+ },
135
+ "phasedRelease": {
136
+ "type": "boolean",
137
+ "default": false
138
+ },
139
+ "automaticRelease": {
140
+ "type": "boolean",
141
+ "default": false
142
+ },
143
+ "copyright": {
144
+ "type": "string"
145
+ }
146
+ },
147
+ "required": [
148
+ "bundleId"
149
+ ],
150
+ "additionalProperties": false
151
+ },
152
+ "android": {
153
+ "type": "object",
154
+ "properties": {
155
+ "package": {
156
+ "type": "string"
157
+ },
158
+ "testTrack": {
159
+ "type": "string",
160
+ "default": "internal"
161
+ },
162
+ "productionTrack": {
163
+ "type": "string",
164
+ "default": "production"
165
+ },
166
+ "initialRollout": {
167
+ "type": "number",
168
+ "minimum": 0,
169
+ "maximum": 1,
170
+ "default": 1
171
+ }
172
+ },
173
+ "required": [
174
+ "package"
175
+ ],
176
+ "additionalProperties": false
177
+ },
178
+ "ota": {
179
+ "type": "object",
180
+ "properties": {
181
+ "channel": {
182
+ "type": "string"
183
+ }
184
+ },
185
+ "required": [
186
+ "channel"
187
+ ],
188
+ "additionalProperties": false
189
+ }
190
+ },
191
+ "required": [
192
+ "buildProfile"
193
+ ],
194
+ "additionalProperties": false
195
+ }
196
+ },
197
+ "toolchain": {
198
+ "type": "object",
199
+ "properties": {
200
+ "easCli": {
201
+ "type": "object",
202
+ "properties": {
203
+ "min": {
204
+ "type": "string"
205
+ },
206
+ "tested": {
207
+ "type": "string"
208
+ }
209
+ },
210
+ "required": [
211
+ "min",
212
+ "tested"
213
+ ],
214
+ "additionalProperties": false
215
+ },
216
+ "node": {
217
+ "type": "object",
218
+ "properties": {
219
+ "min": {
220
+ "type": "string"
221
+ },
222
+ "tested": {
223
+ "type": "string"
224
+ }
225
+ },
226
+ "required": [
227
+ "min",
228
+ "tested"
229
+ ],
230
+ "additionalProperties": false
231
+ },
232
+ "jdk": {
233
+ "type": "object",
234
+ "properties": {
235
+ "min": {
236
+ "type": "string"
237
+ },
238
+ "tested": {
239
+ "type": "string"
240
+ }
241
+ },
242
+ "required": [
243
+ "min",
244
+ "tested"
245
+ ],
246
+ "additionalProperties": false
247
+ },
248
+ "xcode": {
249
+ "type": "object",
250
+ "properties": {
251
+ "min": {
252
+ "type": "string"
253
+ },
254
+ "tested": {
255
+ "type": "string"
256
+ }
257
+ },
258
+ "required": [
259
+ "min",
260
+ "tested"
261
+ ],
262
+ "additionalProperties": false
263
+ },
264
+ "cocoapods": {
265
+ "type": "object",
266
+ "properties": {
267
+ "min": {
268
+ "type": "string"
269
+ },
270
+ "tested": {
271
+ "type": "string"
272
+ }
273
+ },
274
+ "required": [
275
+ "min",
276
+ "tested"
277
+ ],
278
+ "additionalProperties": false
279
+ }
280
+ },
281
+ "additionalProperties": false,
282
+ "default": {}
283
+ },
284
+ "doctor": {
285
+ "type": "object",
286
+ "properties": {
287
+ "sentry": {
288
+ "type": "boolean",
289
+ "default": false
290
+ },
291
+ "expoDoctor": {
292
+ "type": "boolean",
293
+ "default": true
294
+ }
295
+ },
296
+ "additionalProperties": false,
297
+ "default": {}
298
+ }
299
+ },
300
+ "required": [
301
+ "platforms",
302
+ "channels"
303
+ ],
304
+ "additionalProperties": false
305
+ }
306
+ },
307
+ "$schema": "http://json-schema.org/draft-07/schema#"
308
+ }
@@ -0,0 +1,42 @@
1
+ {
2
+ "appDir": ".",
3
+ "platforms": ["android", "ios"],
4
+ "locales": ["pt-BR"],
5
+ "notesDir": "release-notes",
6
+ "version": { "source": "app.json" },
7
+ "git": {
8
+ "releaseBranch": "main",
9
+ "tagFormat": "v{version}",
10
+ "requireClean": true,
11
+ "requireSyncedWithRemote": true,
12
+ "remote": "origin"
13
+ },
14
+ "channels": {
15
+ "release-local": {
16
+ "protected": false,
17
+ "store": false,
18
+ "buildProfile": "release-local",
19
+ "autoIncrement": false,
20
+ "env": {}
21
+ },
22
+ "release": {
23
+ "protected": false,
24
+ "store": true,
25
+ "buildProfile": "release",
26
+ "submitProfile": "release",
27
+ "env": {},
28
+ "ios": { "bundleId": "com.example.app.release" },
29
+ "android": { "package": "com.example.app.release", "testTrack": "internal", "productionTrack": "internal", "initialRollout": 1 }
30
+ },
31
+ "production": {
32
+ "protected": true,
33
+ "store": true,
34
+ "buildProfile": "production",
35
+ "submitProfile": "local-validation",
36
+ "env": {},
37
+ "ios": { "bundleId": "com.example.app", "phasedRelease": true, "automaticRelease": false },
38
+ "android": { "package": "com.example.app", "testTrack": "internal", "productionTrack": "production", "initialRollout": 0.1 },
39
+ "ota": { "channel": "production" }
40
+ }
41
+ }
42
+ }