@@ -287,6 +287,35 @@ jobs:
287
287
- run :
288
288
name : Publish new enterprise version
289
289
command : npm publish
290
+ # Automate the enterprise injazat sdk changes
291
+ release_injazat :
292
+ working_directory : ~/project
293
+ executor :
294
+ name : node/default
295
+ steps :
296
+ - advanced-checkout/shallow-checkout
297
+ - install_node_modules
298
+ - run :
299
+ name : Remove README.md file
300
+ command : rm README.md
301
+ - search_and_replace :
302
+ file : package.json
303
+ replace-pattern : ' s/instabug-reactnative/@instabug\/react-native-injazat/g'
304
+ - search_and_replace :
305
+ file : cli/UploadSourcemaps.ts
306
+ replace-pattern : ' s/api.instabug.com\/api\/sdk/st001013mec1.instabug.com\/api\/sdk/g'
307
+ - search_and_replace :
308
+ file : android/native.gradle
309
+ replace-pattern : ' s/com\.instabug\.library:instabug:/com.instabug.library-injazat:instabug:/g'
310
+ - run :
311
+ name : Build the SDK
312
+ command : yarn build
313
+ - run :
314
+ name : Authorize with npm
315
+ command : echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > ~/.npmrc
316
+ - run :
317
+ name : Publish new enterprise version
318
+ command : npm publish
290
319
# Automate the enterprise D11 sdk changes
291
320
release_d11 :
292
321
working_directory : ~/project
@@ -345,6 +374,31 @@ jobs:
345
374
- run :
346
375
working_directory : project
347
376
command : Escape react-native publish
377
+ publish_new_namespace :
378
+ macos :
379
+ xcode : 13.4.1
380
+ resource_class : macos.m1.medium.gen1
381
+ working_directory : ' ~'
382
+ steps :
383
+ - advanced-checkout/shallow-checkout
384
+ - search_and_replace :
385
+ file : package.json
386
+ replace-pattern : ' s/instabug-reactnative/@instabug\/react-native/g'
387
+ -
run :
git clone [email protected] :Instabug/Escape.git
388
+ - run :
389
+ working_directory : Escape
390
+ command : swift build -c release
391
+ - run :
392
+ working_directory : Escape/.build/release
393
+ command : cp -f Escape /usr/local/bin/escape
394
+ - install_node_modules :
395
+ app-dir : project
396
+ - run :
397
+ working_directory : project
398
+ command : yarn build
399
+ - run :
400
+ working_directory : project
401
+ command : Escape react-native publish
348
402
349
403
generate_snapshot :
350
404
executor :
@@ -421,6 +475,15 @@ workflows:
421
475
filters :
422
476
branches :
423
477
only : master
478
+ - hold_release_injazat :
479
+ requires : *release_dependencies
480
+ type : approval
481
+ - hold_publish_new_namespace :
482
+ requires : *release_dependencies
483
+ type : approval
484
+ filters :
485
+ branches :
486
+ only : master
424
487
- hold_release_d11 :
425
488
requires : *release_dependencies
426
489
type : approval
@@ -430,12 +493,21 @@ workflows:
430
493
filters :
431
494
branches :
432
495
only : master
496
+ - publish_new_namespace :
497
+ requires :
498
+ - hold_publish_new_namespace
499
+ filters :
500
+ branches :
501
+ only : master
433
502
- release_nn :
434
503
requires :
435
504
- hold_release_nn
436
505
filters :
437
506
branches :
438
507
only : master
508
+ - release_injazat :
509
+ requires :
510
+ - hold_release_injazat
439
511
- release_d11 :
440
512
requires :
441
513
- hold_release_d11
0 commit comments