Skip to content

Commit b40d5ee

Browse files
committed
fix/dynamically update changelog on dashboard
1 parent bea6429 commit b40d5ee

File tree

1 file changed

+25
-5
lines changed

1 file changed

+25
-5
lines changed

.circleci/config.yml

Lines changed: 25 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -401,22 +401,33 @@ jobs:
401401
prepare_steps:
402402
type: steps
403403
default: []
404+
api_endpoint:
405+
type: string
406+
dashboard_token_env:
407+
type: string
404408
working_directory: ~/project
405409
executor:
406410
name: node/default
407411
steps:
408412
- 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
409420
- steps: << parameters.prepare_steps >>
410421
- install_node_modules
411422
- run:
412423
name: Build the SDK
413424
command: yarn build
414425
- 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 >>
420431

421432
publish:
422433
macos:
@@ -438,8 +449,11 @@ jobs:
438449
working_directory: project
439450
command: yarn build
440451
- run:
452+
name: Publish Official Package with Escape
441453
working_directory: project
442454
command: Escape react-native publish
455+
environment:
456+
DASHBOARD_API_ENDPOINT: api.instabug.com
443457
publish_new_namespace:
444458
working_directory: ~/project
445459
executor:
@@ -562,6 +576,8 @@ workflows:
562576
npm_package: '@instabug/react-native-nn'
563577
android_package: nn
564578
api_endpoint: st001009nn.instabug.com
579+
api_endpoint: st001009nn.instabug.com
580+
dashboard_token_env: ${NN_TOKEN}
565581

566582
- hold_release_injazat:
567583
requires: *release_dependencies
@@ -581,6 +597,8 @@ workflows:
581597
npm_package: '@instabug/react-native-injazat'
582598
android_package: injazat
583599
api_endpoint: st001013mec1.instabug.com
600+
api_endpoint: st001013mec1.instabug.com
601+
dashboard_token_env: ${INJAZAT_TOKEN}
584602

585603
# Dream11 tests
586604
- hold_test_dream11:
@@ -622,3 +640,5 @@ workflows:
622640
only: dream11
623641
prepare_steps:
624642
- prepare_dream11
643+
api_endpoint: st001012dream11.instabug.com
644+
dashboard_token_env: ${DREAM11_TOKEN}

0 commit comments

Comments
 (0)