@@ -401,22 +401,33 @@ jobs:
401
401
prepare_steps :
402
402
type : steps
403
403
default : []
404
+ api_endpoint :
405
+ type : string
406
+ dashboard_token_env :
407
+ type : string
404
408
working_directory : ~/project
405
409
executor :
406
410
name : node/default
407
411
steps :
408
412
- advanced-checkout/shallow-checkout
413
+ -
run :
git clone [email protected] :Instabug/Escape.git
414
+ - run :
415
+ working_directory : Escape
416
+ command : swift build -c release
417
+ - run :
418
+ working_directory : Escape/.build/release
419
+ command : cp -f Escape /usr/local/bin/escape
409
420
- steps : << parameters.prepare_steps >>
410
421
- install_node_modules
411
422
- run :
412
423
name : Build the SDK
413
424
command : yarn build
414
425
- run :
415
- name : Authorize with NPM
416
- command : echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > ~/.npmrc
417
- - run :
418
- name : Publish new enterprise version
419
- command : npm publish
426
+ name : Publish Custom Package with Escape
427
+ command : Escape react-native publish-custompackage
428
+ environment :
429
+ DASHBOARD_TOKEN : << parameters.dashboard_token_env >>
430
+ DASHBOARD_API_ENDPOINT : << parameters.api_endpoint >>
420
431
421
432
publish :
422
433
macos :
@@ -438,8 +449,11 @@ jobs:
438
449
working_directory : project
439
450
command : yarn build
440
451
- run :
452
+ name : Publish Official Package with Escape
441
453
working_directory : project
442
454
command : Escape react-native publish
455
+ environment :
456
+ DASHBOARD_API_ENDPOINT : api.instabug.com
443
457
publish_new_namespace :
444
458
working_directory : ~/project
445
459
executor :
@@ -562,6 +576,8 @@ workflows:
562
576
npm_package : ' @instabug/react-native-nn'
563
577
android_package : nn
564
578
api_endpoint : st001009nn.instabug.com
579
+ api_endpoint : st001009nn.instabug.com
580
+ dashboard_token_env : ${NN_TOKEN}
565
581
566
582
- hold_release_injazat :
567
583
requires : *release_dependencies
@@ -581,6 +597,8 @@ workflows:
581
597
npm_package : ' @instabug/react-native-injazat'
582
598
android_package : injazat
583
599
api_endpoint : st001013mec1.instabug.com
600
+ api_endpoint : st001013mec1.instabug.com
601
+ dashboard_token_env : ${INJAZAT_TOKEN}
584
602
585
603
# Dream11 tests
586
604
- hold_test_dream11 :
@@ -622,3 +640,5 @@ workflows:
622
640
only : dream11
623
641
prepare_steps :
624
642
- prepare_dream11
643
+ api_endpoint : st001012dream11.instabug.com
644
+ dashboard_token_env : ${DREAM11_TOKEN}
0 commit comments