@@ -287,6 +287,35 @@ jobs:
287287 - run :
288288 name : Publish new enterprise version
289289 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
290319 # Automate the enterprise D11 sdk changes
291320 release_d11 :
292321 working_directory : ~/project
@@ -345,6 +374,31 @@ jobs:
345374 - run :
346375 working_directory : project
347376 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 git@github.com: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
348402
349403 generate_snapshot :
350404 executor :
@@ -421,6 +475,18 @@ workflows:
421475 filters :
422476 branches :
423477 only : master
478+ - hold_release_injazat :
479+ requires : *release_dependencies
480+ type : approval
481+ filters :
482+ branches :
483+ only : master
484+ - hold_publish_new_namespace :
485+ requires : *release_dependencies
486+ type : approval
487+ filters :
488+ branches :
489+ only : master
424490 - hold_release_d11 :
425491 requires : *release_dependencies
426492 type : approval
@@ -430,12 +496,24 @@ workflows:
430496 filters :
431497 branches :
432498 only : master
499+ - publish_new_namespace :
500+ requires :
501+ - hold_publish_new_namespace
502+ filters :
503+ branches :
504+ only : master
433505 - release_nn :
434506 requires :
435507 - hold_release_nn
436508 filters :
437509 branches :
438510 only : master
511+ - release_injazat :
512+ requires :
513+ - hold_release_injazat
514+ filters :
515+ branches :
516+ only : master
439517 - release_d11 :
440518 requires :
441519 - hold_release_d11
0 commit comments