@@ -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,15 @@ workflows:
421475 filters :
422476 branches :
423477 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
424487 - hold_release_d11 :
425488 requires : *release_dependencies
426489 type : approval
@@ -430,12 +493,21 @@ workflows:
430493 filters :
431494 branches :
432495 only : master
496+ - publish_new_namespace :
497+ requires :
498+ - hold_publish_new_namespace
499+ filters :
500+ branches :
501+ only : master
433502 - release_nn :
434503 requires :
435504 - hold_release_nn
436505 filters :
437506 branches :
438507 only : master
508+ - release_injazat :
509+ requires :
510+ - hold_release_injazat
439511 - release_d11 :
440512 requires :
441513 - hold_release_d11
0 commit comments