diff --git a/bitrise.yml b/bitrise.yml index 6e94fd0689e..d0e668215b7 100644 --- a/bitrise.yml +++ b/bitrise.yml @@ -28,6 +28,18 @@ workflows: inputs: - command: audit:ci title: Audit Dependencies + code_setup_dev: + before_run: + - setup + steps: + - script@1: + title: Generate `.npmrc` file for preview builds + inputs: + - content: | + #!/bin/bash + printf '%s\n\n%s' '@metamask:registry=https://npm.pkg.github.com' "//npm.pkg.github.com/:_authToken=${PACKAGE_READ_TOKEN}" > .npmrc + after_run: + - code_setup # Notifications utility workflows # Provides values for commit or branch message and path depending on commit env setup initialised or not @@ -141,7 +153,7 @@ workflows: title: Detox - Install CLI android_e2e_test: before_run: - - code_setup + - code_setup_dev - e2e_setup after_run: - _e2e_notify_on_slack @@ -168,7 +180,7 @@ workflows: is_always_run: false ios_e2e_test: before_run: - - code_setup + - code_setup_dev - e2e_setup after_run: - _e2e_notify_on_slack @@ -257,7 +269,7 @@ workflows: is_always_run: false create_qa_builds: before_run: - - code_setup + - code_setup_dev steps: - build-router-start@0: inputs: @@ -331,7 +343,7 @@ workflows: title: Bitrise Deploy Sourcemaps build_android_qa: before_run: - - code_setup + - code_setup_dev after_run: - _upload_apk_to_browserstack - _build_failure_notify_on_slack @@ -510,7 +522,7 @@ workflows: title: Deploy Source Map build_ios_qa: before_run: - - code_setup + - code_setup_dev after_run: - _build_failure_notify_on_slack steps: