From 2e56488c7ff64c094cb583aa54e7886292dbff1f Mon Sep 17 00:00:00 2001 From: Juan Pablo Garcia Date: Fri, 3 Feb 2023 14:33:50 -0300 Subject: [PATCH] feat: upgrade nitro CLI version - remove legacy args - retrieve nitro CLI from npx - remove default tracking provider - remove build id which is now obtained on license check - remove legacy boot timestamp - remove defaults from step.yml --- .gitignore | 2 +- .releaserc.json | 13 +-- CHANGELOG.md | 65 ++++++------- README.md | 20 ++-- bitrise.yml | 2 +- package.json | 12 +-- step.sh | 44 +++------ step.yml | 59 ++++++------ yarn.lock | 236 ++++++++++++++++++++++-------------------------- 9 files changed, 200 insertions(+), 253 deletions(-) diff --git a/.gitignore b/.gitignore index c1273cf..f3cbe26 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,3 @@ node_modules -dist/**/* .DS_Store +yarn-error.log diff --git a/.releaserc.json b/.releaserc.json index f93a9e6..555a0c5 100644 --- a/.releaserc.json +++ b/.releaserc.json @@ -9,12 +9,6 @@ ], "tagFormat": "${version}", "plugins": [ - [ - "@semantic-release/exec", - { - "prepareCmd": "./node_modules/nitro/packages/cli/scripts/release.sh ./dist-assets" - } - ], "@semantic-release/commit-analyzer", "@semantic-release/release-notes-generator", "@semantic-release/changelog", @@ -31,11 +25,6 @@ "message": "chore(release): bump version to ${nextRelease.version}[skip ci]\n\n${nextRelease.notes}" } ], - [ - "@semantic-release/github", - { - "assets": ["dist-assets/**"] - } - ] + "@semantic-release/github" ] } diff --git a/CHANGELOG.md b/CHANGELOG.md index 28e12a9..b21625c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,154 +1,149 @@ # [4.5.0](https://github.com/nitro-build/bitrise-step-nitro-ios/compare/4.4.1...4.5.0) (2023-01-31) - ### Features -* upgrade nitro CLI version ([c180211](https://github.com/nitro-build/bitrise-step-nitro-ios/commit/c180211fd573d3ed5fdd29a20b47f33c46a3093c)) -* upgrade nitro to the latest version ([b3511f6](https://github.com/nitro-build/bitrise-step-nitro-ios/commit/b3511f6c82a19917cf6e76bceb561a4df25f5716)) +- upgrade nitro to the latest version ([b3511f6](https://github.com/nitro-build/bitrise-step-nitro-ios/commit/b3511f6c82a19917cf6e76bceb561a4df25f5716)) # [4.5.0-beta.1](https://github.com/nitro-build/bitrise-step-nitro-ios/compare/4.4.1...4.5.0-beta.1) (2023-01-28) - ### Features -* upgrade nitro CLI version ([c180211](https://github.com/nitro-build/bitrise-step-nitro-ios/commit/c180211fd573d3ed5fdd29a20b47f33c46a3093c)) +- upgrade nitro CLI version ([c180211](https://github.com/nitro-build/bitrise-step-nitro-ios/commit/c180211fd573d3ed5fdd29a20b47f33c46a3093c)) ## [4.4.1](https://github.com/nitro-build/bitrise-step-nitro-ios/compare/4.4.0...4.4.1) (2023-01-10) - ### Bug Fixes -* improve xcbeautify command detection ([524e74a](https://github.com/nitro-build/bitrise-step-nitro-ios/commit/524e74a6569f78d1cc1c003ef8671179bc736cfe)) +- improve xcbeautify command detection ([524e74a](https://github.com/nitro-build/bitrise-step-nitro-ios/commit/524e74a6569f78d1cc1c003ef8671179bc736cfe)) ## [4.4.0](https://github.com/nitro-build/bitrise-step-nitro-ios/compare/4.3.0...4.4.0) (2023-01-05) - ### Features -* detox + iOS simulator support ([#3](https://github.com/nitro-build/bitrise-step-nitro-ios/issues/3)) ([a86877e](https://github.com/nitro-build/bitrise-step-nitro-ios/commit/a86877eae9ed4c0d2585e8643c0d2fe463e69c31)) +- detox + iOS simulator support ([#3](https://github.com/nitro-build/bitrise-step-nitro-ios/issues/3)) ([a86877e](https://github.com/nitro-build/bitrise-step-nitro-ios/commit/a86877eae9ed4c0d2585e8643c0d2fe463e69c31)) ## [4.3.0](https://github.com/nitro-build/bitrise-step-nitro-ios/compare/4.2.1...4.3.0) (2022-12-19) ### Features -* add arguments to specify custom s3 cache provider config ([8a9cf9d](https://github.com/nitro-build/bitrise-step-nitro-ios/commit/8a9cf9d182dbb02d710c0e5be968c139bfe5660a)) +- add arguments to specify custom s3 cache provider config ([8a9cf9d](https://github.com/nitro-build/bitrise-step-nitro-ios/commit/8a9cf9d182dbb02d710c0e5be968c139bfe5660a)) ## [4.3.0-beta.1](https://github.com/nitro-build/bitrise-step-nitro-ios/compare/4.2.1...4.3.0-beta.1) (2022-12-19) ### Features -* add arguments to specify custom s3 cache provider config ([8a9cf9d](https://github.com/nitro-build/bitrise-step-nitro-ios/commit/8a9cf9d182dbb02d710c0e5be968c139bfe5660a)) +- add arguments to specify custom s3 cache provider config ([8a9cf9d](https://github.com/nitro-build/bitrise-step-nitro-ios/commit/8a9cf9d182dbb02d710c0e5be968c139bfe5660a)) ### [4.2.1](https://github.com/nitro-build/bitrise-step-nitro-ios/compare/4.2.0...4.2.1) (2022-12-06) ### Bug Fixes -* declare missing system dependency ([2f43fc5](https://github.com/nitro-build/bitrise-step-nitro-ios/commit/2f43fc5d8cb86284fdcf7e50471ca900f354cef6)) +- declare missing system dependency ([2f43fc5](https://github.com/nitro-build/bitrise-step-nitro-ios/commit/2f43fc5d8cb86284fdcf7e50471ca900f354cef6)) ## [4.2.0](https://github.com/nitro-build/bitrise-step-nitro-ios/compare/4.1.0...4.2.0) (2022-12-01) ### Bug Fixes -* change website to Github url ([4c9eff3](https://github.com/nitro-build/bitrise-step-nitro-ios/commit/4c9eff32127ae14d9f05b29ab9c79b74a8936bc4)) +- change website to Github url ([4c9eff3](https://github.com/nitro-build/bitrise-step-nitro-ios/commit/4c9eff32127ae14d9f05b29ab9c79b74a8936bc4)) ### Features -* add icon and modify metadata ([049fecf](https://github.com/nitro-build/bitrise-step-nitro-ios/commit/049fecfd6039c7075d3ae8a5fbde3fe5a7daaf54)) +- add icon and modify metadata ([049fecf](https://github.com/nitro-build/bitrise-step-nitro-ios/commit/049fecfd6039c7075d3ae8a5fbde3fe5a7daaf54)) ## [4.1.0](https://github.com/nitro-build/bitrise-step-nitro-ios/compare/4.0.0...4.1.0) (2022-12-01) ### Features -* add missing parameter and default values ([ed97533](https://github.com/nitro-build/bitrise-step-nitro-ios/commit/ed97533a4cdf415ef583b5de2cfd170650e32750)) +- add missing parameter and default values ([ed97533](https://github.com/nitro-build/bitrise-step-nitro-ios/commit/ed97533a4cdf415ef583b5de2cfd170650e32750)) ## [4.0.0](https://github.com/nitro-build/bitrise-step-nitro-ios/compare/3.0.0...4.0.0) (2022-11-04) ### Features -* point to the latest nitro version ([2af9e0d](https://github.com/nitro-build/bitrise-step-nitro-ios/commit/2af9e0d22698cf7cd44a26ee4c3513fa41b3803a)) -* update nitro to the latest version ([fcb2504](https://github.com/nitro-build/bitrise-step-nitro-ios/commit/fcb2504ff489c0323cc33353fcea6d8c162db0bf)) -* update to the latest nitro version ([22034bb](https://github.com/nitro-build/bitrise-step-nitro-ios/commit/22034bb75b5073e7d1ec45870efb2961a11d70d4)) -* update to the latest nitro version ([2d12a4a](https://github.com/nitro-build/bitrise-step-nitro-ios/commit/2d12a4a9fefaaf534537270a6bb30a57005983a5)) +- point to the latest nitro version ([2af9e0d](https://github.com/nitro-build/bitrise-step-nitro-ios/commit/2af9e0d22698cf7cd44a26ee4c3513fa41b3803a)) +- update nitro to the latest version ([fcb2504](https://github.com/nitro-build/bitrise-step-nitro-ios/commit/fcb2504ff489c0323cc33353fcea6d8c162db0bf)) +- update to the latest nitro version ([22034bb](https://github.com/nitro-build/bitrise-step-nitro-ios/commit/22034bb75b5073e7d1ec45870efb2961a11d70d4)) +- update to the latest nitro version ([2d12a4a](https://github.com/nitro-build/bitrise-step-nitro-ios/commit/2d12a4a9fefaaf534537270a6bb30a57005983a5)) ### BREAKING CHANGES -* remove ios prefix +- remove ios prefix ## [4.0.0-beta.4](https://github.com/nitro-build/bitrise-step-nitro-ios/compare/4.0.0-beta.3...4.0.0-beta.4) (2022-11-04) ### Features -* update to the latest nitro version ([22034bb](https://github.com/nitro-build/bitrise-step-nitro-ios/commit/22034bb75b5073e7d1ec45870efb2961a11d70d4)) +- update to the latest nitro version ([22034bb](https://github.com/nitro-build/bitrise-step-nitro-ios/commit/22034bb75b5073e7d1ec45870efb2961a11d70d4)) ## [4.0.0-beta.3](https://github.com/nitro-build/bitrise-step-nitro-ios/compare/4.0.0-beta.2...4.0.0-beta.3) (2022-11-04) ### Features -* update to the latest nitro version ([2d12a4a](https://github.com/nitro-build/bitrise-step-nitro-ios/commit/2d12a4a9fefaaf534537270a6bb30a57005983a5)) +- update to the latest nitro version ([2d12a4a](https://github.com/nitro-build/bitrise-step-nitro-ios/commit/2d12a4a9fefaaf534537270a6bb30a57005983a5)) ## [4.0.0-beta.2](https://github.com/nitro-build/bitrise-step-nitro-ios/compare/4.0.0-beta.1...4.0.0-beta.2) (2022-11-04) ### Features -* point to the latest nitro version ([2af9e0d](https://github.com/nitro-build/bitrise-step-nitro-ios/commit/2af9e0d22698cf7cd44a26ee4c3513fa41b3803a)) +- point to the latest nitro version ([2af9e0d](https://github.com/nitro-build/bitrise-step-nitro-ios/commit/2af9e0d22698cf7cd44a26ee4c3513fa41b3803a)) ## [4.0.0-beta.1](https://github.com/nitro-build/bitrise-step-nitro-ios/compare/3.0.0...4.0.0-beta.1) (2022-11-04) ### Features -* update nitro to the latest version ([fcb2504](https://github.com/nitro-build/bitrise-step-nitro-ios/commit/fcb2504ff489c0323cc33353fcea6d8c162db0bf)) +- update nitro to the latest version ([fcb2504](https://github.com/nitro-build/bitrise-step-nitro-ios/commit/fcb2504ff489c0323cc33353fcea6d8c162db0bf)) ### BREAKING CHANGES -* remove ios prefix +- remove ios prefix ## [3.0.0](https://github.com/nitro-build/bitrise-step-nitro-ios/compare/2.0.0...3.0.0) (2022-10-27) ### Features -* update to the latest nitro version ([d19dae1](https://github.com/nitro-build/bitrise-step-nitro-ios/commit/d19dae151ec3e5a8c467e3c7afbde5fddfae0cfd)) +- update to the latest nitro version ([d19dae1](https://github.com/nitro-build/bitrise-step-nitro-ios/commit/d19dae151ec3e5a8c467e3c7afbde5fddfae0cfd)) ### BREAKING CHANGES -* support for api-key and offline license +- support for api-key and offline license ## [2.0.0](https://github.com/nitro-build/bitrise-step-nitro-ios/compare/1.2.0...2.0.0) (2022-10-25) ### Features -* improve args ([8179a39](https://github.com/nitro-build/bitrise-step-nitro-ios/commit/8179a398639c669d7734a1ec52e481e1525631e7)) +- improve args ([8179a39](https://github.com/nitro-build/bitrise-step-nitro-ios/commit/8179a398639c669d7734a1ec52e481e1525631e7)) ### BREAKING CHANGES -* remove ios prefix to the args +- remove ios prefix to the args ## [1.2.0](https://github.com/nitro-build/bitrise-step-nitro-ios/compare/1.1.2...1.2.0) (2022-10-24) ### Features -* add verbose argument ([069d089](https://github.com/nitro-build/bitrise-step-nitro-ios/commit/069d089d7b257bb103e4330ec5ee5055ecbca7db)) -* upgrade nitro version ([b30296c](https://github.com/nitro-build/bitrise-step-nitro-ios/commit/b30296cd136275753d9aaa333b97194d4e973a7f)) +- add verbose argument ([069d089](https://github.com/nitro-build/bitrise-step-nitro-ios/commit/069d089d7b257bb103e4330ec5ee5055ecbca7db)) +- upgrade nitro version ([b30296c](https://github.com/nitro-build/bitrise-step-nitro-ios/commit/b30296cd136275753d9aaa333b97194d4e973a7f)) ### [1.1.2](https://github.com/nitro-build/bitrise-step-nitro-ios/compare/1.1.1...1.1.2) (2022-10-13) ### Bug Fixes -* apktool injection issue ([3b59078](https://github.com/nitro-build/bitrise-step-nitro-ios/commit/3b590780890db9f185fb87db8dd8ed8a21fb625e)) +- apktool injection issue ([3b59078](https://github.com/nitro-build/bitrise-step-nitro-ios/commit/3b590780890db9f185fb87db8dd8ed8a21fb625e)) ### [1.1.1](https://github.com/nitro-build/bitrise-step-nitro-ios/compare/1.1.0...1.1.1) (2022-10-12) ### Bug Fixes -* remove defaults not required ([526207f](https://github.com/nitro-build/bitrise-step-nitro-ios/commit/526207fd7ff8cab64e9893d665857fd3c24f8741)) +- remove defaults not required ([526207f](https://github.com/nitro-build/bitrise-step-nitro-ios/commit/526207fd7ff8cab64e9893d665857fd3c24f8741)) ## [1.1.0](https://github.com/nitro-build/bitrise-step-nitro-ios/compare/1.0.0...1.1.0) (2022-10-05) ### Features -* update bitrise stack ([265cdd6](https://github.com/nitro-build/bitrise-step-nitro-ios/commit/265cdd6aaec7e78b866522b4bd8e0321f4b8cd28)) +- update bitrise stack ([265cdd6](https://github.com/nitro-build/bitrise-step-nitro-ios/commit/265cdd6aaec7e78b866522b4bd8e0321f4b8cd28)) # 1.0.0 (2022-09-12) ### Features -* initial commit ([cf56114](https://github.com/nitro-build/bitrise-step-nitro-ios/commit/cf56114a159fb9a69362d2391d5b5fe20182c6d9)) +- initial commit ([cf56114](https://github.com/nitro-build/bitrise-step-nitro-ios/commit/cf56114a159fb9a69362d2391d5b5fe20182c6d9)) diff --git a/README.md b/README.md index 44147d5..58533d1 100644 --- a/README.md +++ b/README.md @@ -25,6 +25,7 @@ You can also run this step directly with [Bitrise CLI](https://github.com/bitris | Key | Description | Flags | Default | | --- | --- | --- | --- | +| `api_key` | The API key required by Nitro. It is recommended to set a $NITRO_API_KEY as a Bitrise secret. | sensitive | | | `root_directory` | The directory within your project, in which your code is located. Leave this field empty if your code is not located in a subdirectory | | `./` | | `scheme` | The name of the iOS scheme | | | | `xcconfig_path` | The path relative to project root directory where the custom `.xcconfig` file is located | | | @@ -40,24 +41,23 @@ You can also run this step directly with [Bitrise CLI](https://github.com/bitris | `team_id` | Specify the Team ID you want to use for the Apple Developer Portal | | | | `export_method` | The export method used to generate the IPA | | `ad-hoc` | | `cache_provider` | Choose the provider where cache artifacts will be persisted: - `fs`: File system - `s3`: Amazon - Simple Storage Service | | `s3` | -| `disable_cache` | When setting this option to `yes` build cache optimizations won't be performed | | `$NITRO_DISABLE_CACHE` | +| `disable_cache` | When setting this option to `yes` build cache optimizations won't be performed. (defaults to $NITRO_DISABLE_CACHE if present) | | | | `cache_env_var_lookup_keys` | A list of `\|` separated values with env variable keys to lookup to determine whether the build should be cached or not | | | | `cache_file_lookup_paths` | A list of `\|` separated value paths (relative to the root of the repo or absolute) to lookup in order to determine whether the build should be cached or not | | | -| `disable_metro_cache` | Setting this field to yes will disable the React Native Metro cache feature | | `$NITRO_DISABLE_METRO_CACHE` | -| `aws_s3_access_key_id` | AWS access key ID for S3 bucket build caching | | `$NITRO_AWS_S3_ACCESS_KEY_ID` | -| `aws_s3_secret_access_key` | AWS secret access key for S3 bucket build caching | | `$NITRO_AWS_S3_SECRET_ACCESS_KEY` | -| `aws_s3_region` | AWS region where S3 bucket for build caching is located | | `$NITRO_AWS_S3_REGION` | -| `aws_s3_bucket` | AWS bucket name for S3 bucket build caching | | `$NITRO_AWS_S3_BUCKET` | +| `disable_metro_cache` | Setting this field to yes will disable the React Native Metro cache feature | | | +| `aws_s3_access_key_id` | AWS access key ID for S3 bucket build caching (defaults to $NITRO_AWS_S3_ACCESS_KEY_ID if present) | | | +| `aws_s3_secret_access_key` | AWS secret access key for S3 bucket build caching (defaults to $NITRO_AWS_S3_SECRET_ACCESS_KEY if present) | | | +| `aws_s3_region` | AWS region where S3 bucket for build caching is located (defaults to $NITRO_AWS_S3_REGION if present) | | | +| `aws_s3_bucket` | AWS bucket name for S3 bucket build caching (defaults to $NITRO_AWS_S3_BUCKET if present) | | | | `pre_install_command` | Run command prior to install project dependencies (e.g. `rm -rf ./some-folder`) | | | | `pre_build_command` | Run command prior to start building the app (e.g. `yarn tsc && yarn test`) | | | | `post_build_command` | Run command once build successfully finished (e.g. `yarn publish`) | | | | `detox_configuration` | Select a device configuration from your defined configurations. | | | -| `output_directory` | The path to the directory where to place all of Nitro's output files | | `$BITRISE_DEPLOY_DIR` | -| `entry_file` | The entry file for bundle generation | | `$ENTRY_FILE` | +| `output_directory` | The path to the directory where to place all of Nitro's output files (defaults to $BITRISE_DEPLOY_DIR) | | | +| `entry_file` | The entry file for bundle generation (defaults to $ENTRY_FILE if present) | | | | `verbose` | Enable verbose logs | | `no` | | `debug` | Enable step debugging | | `no` | -| `fail_safe` | Runing the app in this mode allows you to prevent the build to fail but you can check the status in further steps | | `$NITRO_FAIL_SAFE` | -| `api_key` | The API key provided by Nitro. It should be defined by setting NITRO_API_KEY secret. | sensitive | `$NITRO_API_KEY` | +| `fail_safe` | Runing the app in this mode allows you to prevent the build to fail but you can check the status in further steps (defaults to $NITRO_FAIL_SAFE if present) | | |
diff --git a/bitrise.yml b/bitrise.yml index d388fa5..a08aad9 100644 --- a/bitrise.yml +++ b/bitrise.yml @@ -14,7 +14,7 @@ workflows: steps: - activate-ssh-key@4: run_if: '{{getenv "SSH_RSA_PRIVATE_KEY" | ne ""}}' - - git-clone@6: {} + - git-clone@7: {} - brew-install@0: title: Setup deps (OSX) - Install brew dependencies inputs: diff --git a/package.json b/package.json index b750354..54b0fce 100644 --- a/package.json +++ b/package.json @@ -9,16 +9,14 @@ }, "dependencies": { "@semantic-release/changelog": "6.0.2", - "@semantic-release/exec": "6.0.3", "@semantic-release/git": "10.0.1", - "semantic-release": "19.0.5", - "nitro": "ssh://git@github.com:nitro-build/nitro.git#0.9.0" + "semantic-release": "19.0.5" }, "devDependencies": { - "@commitlint/cli": "17.3.0", - "@commitlint/config-conventional": "17.3.0", - "husky": "8.0.1", - "prettier": "2.8.1", + "@commitlint/cli": "17.4.4", + "@commitlint/config-conventional": "17.4.4", + "husky": "8.0.3", + "prettier": "2.8.4", "prettier-plugin-sh": "0.12.8" } } diff --git a/step.sh b/step.sh index a9aa224..af01cfb 100755 --- a/step.sh +++ b/step.sh @@ -12,28 +12,19 @@ if [[ "${debug}" == "true" || "${debug}" == "yes" ]]; then set -x fi +entry_file="${entry_file:-${ENTRY_FILE}}" if [[ -n ${entry_file} ]]; then export ENTRY_FILE="${entry_file}" fi -# Obtain vm boot time -ps_command=$([[ "$(uname)" == "Darwin" ]] && echo "ps -eo lstart,command" || echo "ps -eo lstart,cmd") -date_command=$([[ "$(uname)" == "Darwin" ]] && echo "gdate" || echo "date") - -bitrise_process_started_at=$(${ps_command} | grep "bitrise run" | grep -v grep | sed -e 's/^\(.\{24\}\).*/\1/' | head -1) -bitrise_process_started_at_ms=$(${date_command} -d "${bitrise_process_started_at:=$(date)}" "+%s%3N") - -# Set environment variables -export NITRO_BOOTED_AT_TIMESTAMP="${bitrise_process_started_at_ms}" - # Build command arguments args=("ios") args+=("--output-format" "json") -args+=("--tracking-provider" "nitro-on-premise") - -args+=("--build-id" "${BITRISE_BUILD_SLUG}") args+=("--repo-path" "${BITRISE_SOURCE_DIR}") +api_key="${api_key:-${NITRO_API_KEY}}" +args+=("--api-key" "${api_key}") + # ------------------- # Basic configuration # ------------------- @@ -114,6 +105,7 @@ if [[ -n ${cache_provider} ]]; then args+=("--cache-provider" "${cache_provider}") fi +disable_cache="${disable_cache:-${NITRO_DISABLE_CACHE}}" # shellcheck disable=SC2154 if [[ "${disable_cache}" == "true" || "${disable_cache}" == "yes" ]]; then args+=("--disable-cache") @@ -131,23 +123,28 @@ if [[ -n ${cache_file_lookup_paths} ]]; then args+=("--cache-file-lookup-paths" ${cache_file_lookup_paths_value[@]}) fi +disable_metro_cache="${disable_metro_cache:-${NITRO_DISABLE_METRO_CACHE}}" # shellcheck disable=SC2154 if [[ "${disable_metro_cache}" == "true" || "${disable_metro_cache}" == "yes" ]]; then args+=("--disable-metro-cache") fi +aws_s3_access_key_id="${aws_s3_access_key_id:-${NITRO_AWS_S3_ACCESS_KEY_ID}}" if [[ -n ${aws_s3_access_key_id} ]]; then args+=("--aws-s3-access-key-id" "$aws_s3_access_key_id") fi +aws_s3_secret_access_key="${aws_s3_secret_access_key:-${NITRO_AWS_S3_SECRET_ACCESS_KEY}}" if [[ -n ${aws_s3_secret_access_key} ]]; then args+=("--aws-s3-secret-access-key" "$aws_s3_secret_access_key") fi +aws_s3_region="${aws_s3_region:-${NITRO_AWS_S3_REGION}}" if [[ -n ${aws_s3_region} ]]; then args+=("--aws-s3-region" "$aws_s3_region") fi +aws_s3_bucket="${aws_s3_bucket:-${NITRO_AWS_S3_BUCKET}}" if [[ -n ${aws_s3_bucket} ]]; then args+=("--aws-s3-bucket" "$aws_s3_bucket") fi @@ -176,6 +173,7 @@ if [[ -n ${detox_configuration} ]]; then args+=("--detox-configuration" "${detox_configuration}") fi +output_directory="${output_directory:-${BITRISE_DEPLOY_DIR}}" if [[ -n ${output_directory} ]]; then args+=("--output-directory" "${output_directory}") fi @@ -189,21 +187,8 @@ fi # Nitro Cli execution # ------------------- -SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" -BITRISE_STEP_VERSION=$(cat < "${SCRIPT_DIR}/package.json" | jq -r '.version') - -MACOS_BIN_FILE="nitro-macos" -LINUX_BIN_FILE="nitro-linux" - -BIN_FILE=$([[ "$(uname)" == "Darwin" ]] && echo "${MACOS_BIN_FILE}" || echo "${LINUX_BIN_FILE}") -BIN_FILE_PATH="${SCRIPT_DIR}/nitro" NITRO_OUTPUT_JSON_PATH="$(pwd)/nitro-output.json" - -# Download cli release -wget -q "https://github.com/nitro-build/bitrise-step-nitro-ios/releases/download/${BITRISE_STEP_VERSION}/${BIN_FILE}" -O "${BIN_FILE_PATH}" -chmod +x "${BIN_FILE_PATH}" -${BIN_FILE_PATH} "${args[@]}" - +npx @nitro-build/cli@^0.11.0 "${args[@]}" exit_code=$? # Set environment variables using envman @@ -224,13 +209,14 @@ else echo "File not found: ${NITRO_OUTPUT_JSON_PATH}" fi +fail_safe="${fail_safe:-${FAIL_SAFE}}" # shellcheck disable=SC2154 if [[ "${fail_safe}" == "true" || "${fail_safe}" == "yes" ]]; then if [[ exit_code -ne 0 ]]; then echo "⚠️ Nitro has thrown a '${exit_code}' error code while running on fail-safe mode. You can check 'NITRO_BUILD_STATUS' value in further steps." - fi + fi else # If not running in "safe mode" exit with captured exit_code set -e exit $exit_code -fi \ No newline at end of file +fi diff --git a/step.yml b/step.yml index 6530c23..5e817f2 100644 --- a/step.yml +++ b/step.yml @@ -20,7 +20,6 @@ is_skippable: false run_if: "" deps: brew: - - name: wget - name: pigz - name: gnu-sed - name: jq @@ -30,6 +29,12 @@ toolkit: inputs: # Basic configuration + - api_key: + opts: + title: "Nitro API key" + summary: "The API key required by Nitro. It is recommended to set a $NITRO_API_KEY as a Bitrise secret." + is_expand: true + is_sensitive: true - root_directory: "./" opts: title: "Root directory" @@ -125,6 +130,8 @@ inputs: value_options: - "ad-hoc" - "app-store" + - "development" + - "enterprise" # Caching - cache_provider: "s3" @@ -140,15 +147,13 @@ inputs: value_options: - "fs" - "s3" - - disable_cache: "$NITRO_DISABLE_CACHE" + - disable_cache: opts: category: "Caching" title: "Disable builds caching" - summary: "When setting this option to `yes` build cache optimizations won't be performed" + summary: "When setting this option to `yes` build cache optimizations won't be performed. (defaults to $NITRO_DISABLE_CACHE if present)" + description: "When setting this option to `yes` build cache optimizations won't be performed. (defaults to $NITRO_DISABLE_CACHE if present)" is_expand: true - value_options: - - "yes" - - "no" - cache_env_var_lookup_keys: opts: category: "Caching" @@ -163,36 +168,36 @@ inputs: summary: "A list of `|` separated value paths (relative to the root of the repo or absolute) to lookup in order to determine whether the build should be cached or not" description: "A list of `|` separated value paths (relative to the root of the repo or absolute) to lookup in order to determine whether the build should be cached or not" is_expand: true - - disable_metro_cache: "$NITRO_DISABLE_METRO_CACHE" + - disable_metro_cache: opts: category: "Caching" title: "Disable Metro bundler cache" - summary: "Setting this field to `yes` will disable the React Native Metro cache feature" - description: "Setting this field to yes will disable the React Native Metro cache feature" + summary: "Setting this field to `yes` will disable the React Native Metro cache feature. (defaults to $NITRO_DISABLE_METRO_CACHE if present)" + description: "Setting this field to yes will disable the React Native Metro cache feature. (defaults to $NITRO_DISABLE_METRO_CACHE if present)" is_expand: true - - aws_s3_access_key_id: "$NITRO_AWS_S3_ACCESS_KEY_ID" + - aws_s3_access_key_id: opts: category: "Caching" title: "AWS S3 access key ID" - summary: "AWS access key ID for S3 bucket build caching" + summary: "AWS access key ID for S3 bucket build caching. (defaults to $NITRO_AWS_S3_ACCESS_KEY_ID if present)" is_expand: true - - aws_s3_secret_access_key: "$NITRO_AWS_S3_SECRET_ACCESS_KEY" + - aws_s3_secret_access_key: opts: category: "Caching" title: "AWS S3 secret access key" - summary: "AWS secret access key for S3 bucket build caching" + summary: "AWS secret access key for S3 bucket build caching. (defaults to $NITRO_AWS_S3_SECRET_ACCESS_KEY if present)" is_expand: true - - aws_s3_region: "$NITRO_AWS_S3_REGION" + - aws_s3_region: opts: category: "Caching" title: "AWS S3 region" - summary: "AWS region where S3 bucket for build caching is located" + summary: "AWS region where S3 bucket for build caching is located. (defaults to $NITRO_AWS_S3_REGION if present)" is_expand: true - - aws_s3_bucket: "$NITRO_AWS_S3_BUCKET" + - aws_s3_bucket: opts: category: "Caching" title: "AWS S3 bucket name" - summary: "AWS bucket name for S3 bucket build caching" + summary: "AWS bucket name for S3 bucket build caching. (defaults to $NITRO_AWS_S3_BUCKET if present)" is_expand: true # Hooks @@ -225,17 +230,17 @@ inputs: title: "Detox configuration" summary: "Select a device configuration from your defined configurations." is_expand: true - - output_directory: "$BITRISE_DEPLOY_DIR" + - output_directory: opts: category: "Advanced" title: "Output directory" - summary: "The path to the directory where to place all of Nitro's output files" + summary: "The path to the directory where to place all of Nitro's output files. (defaults to $BITRISE_DEPLOY_DIR)" is_expand: true - - entry_file: "$ENTRY_FILE" + - entry_file: opts: category: "Advanced" title: "The entry file for bundle generation" - summary: "The entry file for bundle generation" + summary: "The entry file for bundle generation. (defaults to $ENTRY_FILE if present)" is_expand: true - verbose: "no" opts: @@ -255,20 +260,12 @@ inputs: value_options: - "yes" - "no" - - fail_safe: "$NITRO_FAIL_SAFE" + - fail_safe: opts: category: "Advanced" title: "Fail-safe mode" - summary: "Runing the app in this mode allows you to prevent the build to fail but you can check the status in further steps" - is_expand: true - - # API key - - api_key: "$NITRO_API_KEY" - opts: - title: "Nitro API key" - summary: "The API key provided by Nitro. It should be defined by setting NITRO_API_KEY secret." + summary: "Runing the app in this mode allows you to prevent the build to fail but you can check the status in further steps. (defaults to $NITRO_FAIL_SAFE if present)" is_expand: true - is_sensitive: true outputs: - NITRO_BUILD_STATUS: diff --git a/yarn.lock b/yarn.lock index 01b1412..b304685 100644 --- a/yarn.lock +++ b/yarn.lock @@ -28,43 +28,43 @@ resolved "https://registry.yarnpkg.com/@colors/colors/-/colors-1.5.0.tgz#bb504579c1cae923e6576a4f5da43d25f97bdbd9" integrity sha512-ooWCrlZP11i8GImSjTHYHLkvFDP48nS4+204nGb1RiX/WXYHmJA2III9/e2DWVabCESdW7hBAEzHRqUn9OUVvQ== -"@commitlint/cli@17.3.0": - version "17.3.0" - resolved "https://registry.yarnpkg.com/@commitlint/cli/-/cli-17.3.0.tgz#d8497f03e27a5161178e802168d77de2941959a0" - integrity sha512-/H0md7TsKflKzVPz226VfXzVafJFO1f9+r2KcFvmBu08V0T56lZU1s8WL7/xlxqLMqBTVaBf7Ixtc4bskdEEZg== - dependencies: - "@commitlint/format" "^17.0.0" - "@commitlint/lint" "^17.3.0" - "@commitlint/load" "^17.3.0" - "@commitlint/read" "^17.2.0" - "@commitlint/types" "^17.0.0" +"@commitlint/cli@17.4.4": + version "17.4.4" + resolved "https://registry.yarnpkg.com/@commitlint/cli/-/cli-17.4.4.tgz#36df08bfa31dbb9a2b6b1d7187a31e578f001a06" + integrity sha512-HwKlD7CPVMVGTAeFZylVNy14Vm5POVY0WxPkZr7EXLC/os0LH/obs6z4HRvJtH/nHCMYBvUBQhGwnufKfTjd5g== + dependencies: + "@commitlint/format" "^17.4.4" + "@commitlint/lint" "^17.4.4" + "@commitlint/load" "^17.4.4" + "@commitlint/read" "^17.4.4" + "@commitlint/types" "^17.4.4" execa "^5.0.0" lodash.isfunction "^3.0.9" resolve-from "5.0.0" resolve-global "1.0.0" yargs "^17.0.0" -"@commitlint/config-conventional@17.3.0": - version "17.3.0" - resolved "https://registry.yarnpkg.com/@commitlint/config-conventional/-/config-conventional-17.3.0.tgz#77bcfabfed932bc80e97f31f2201ba05f504e145" - integrity sha512-hgI+fN5xF8nhS9uG/V06xyT0nlcyvHHMkq0kwRSr96vl5BFlRGaL2C0/YY4kQagfU087tmj01bJkG9Ek98Wllw== +"@commitlint/config-conventional@17.4.4": + version "17.4.4" + resolved "https://registry.yarnpkg.com/@commitlint/config-conventional/-/config-conventional-17.4.4.tgz#f30b1e5b2e48ce5799a483c200c52f218a98efcc" + integrity sha512-u6ztvxqzi6NuhrcEDR7a+z0yrh11elY66nRrQIpqsqW6sZmpxYkDLtpRH8jRML+mmxYQ8s4qqF06Q/IQx5aJeQ== dependencies: conventional-changelog-conventionalcommits "^5.0.0" -"@commitlint/config-validator@^17.4.0": - version "17.4.0" - resolved "https://registry.yarnpkg.com/@commitlint/config-validator/-/config-validator-17.4.0.tgz#2cb229672a22476cf1f21bedbfcd788e5da5b54f" - integrity sha512-Sa/+8KNpDXz4zT4bVbz2fpFjvgkPO6u2V2fP4TKgt6FjmOw2z3eEX859vtfeaTav/ukBw0/0jr+5ZTZp9zCBhA== +"@commitlint/config-validator@^17.4.4": + version "17.4.4" + resolved "https://registry.yarnpkg.com/@commitlint/config-validator/-/config-validator-17.4.4.tgz#d0742705719559a101d2ee49c0c514044af6d64d" + integrity sha512-bi0+TstqMiqoBAQDvdEP4AFh0GaKyLFlPPEObgI29utoKEYoPQTvF0EYqIwYYLEoJYhj5GfMIhPHJkTJhagfeg== dependencies: - "@commitlint/types" "^17.4.0" + "@commitlint/types" "^17.4.4" ajv "^8.11.0" -"@commitlint/ensure@^17.4.0": - version "17.4.0" - resolved "https://registry.yarnpkg.com/@commitlint/ensure/-/ensure-17.4.0.tgz#3de65768bfccb9956ec3a0ecd8a415421bf315e5" - integrity sha512-7oAxt25je0jeQ/E0O/M8L3ADb1Cvweu/5lc/kYF8g/kXatI0wxGE5La52onnAUAWeWlsuvBNar15WcrmDmr5Mw== +"@commitlint/ensure@^17.4.4": + version "17.4.4" + resolved "https://registry.yarnpkg.com/@commitlint/ensure/-/ensure-17.4.4.tgz#a36e7719bdb9c2b86c8b8c2e852b463a7bfda5fa" + integrity sha512-AHsFCNh8hbhJiuZ2qHv/m59W/GRE9UeOXbkOqxYMNNg9pJ7qELnFcwj5oYpa6vzTSHtPGKf3C2yUFNy1GGHq6g== dependencies: - "@commitlint/types" "^17.4.0" + "@commitlint/types" "^17.4.4" lodash.camelcase "^4.3.0" lodash.kebabcase "^4.1.1" lodash.snakecase "^4.1.1" @@ -76,41 +76,41 @@ resolved "https://registry.yarnpkg.com/@commitlint/execute-rule/-/execute-rule-17.4.0.tgz#4518e77958893d0a5835babe65bf87e2638f6939" integrity sha512-LIgYXuCSO5Gvtc0t9bebAMSwd68ewzmqLypqI2Kke1rqOqqDbMpYcYfoPfFlv9eyLIh4jocHWwCK5FS7z9icUA== -"@commitlint/format@^17.0.0": - version "17.4.0" - resolved "https://registry.yarnpkg.com/@commitlint/format/-/format-17.4.0.tgz#1c80cf3a6274ff9b3d3c0dd150a97882d557aa0f" - integrity sha512-Z2bWAU5+f1YZh9W76c84J8iLIWIvvm+mzqogTz0Nsc1x6EHW0Z2gI38g5HAjB0r0I3ZjR15IDEJKhsxyblcyhA== +"@commitlint/format@^17.4.4": + version "17.4.4" + resolved "https://registry.yarnpkg.com/@commitlint/format/-/format-17.4.4.tgz#0f6e1b4d7a301c7b1dfd4b6334edd97fc050b9f5" + integrity sha512-+IS7vpC4Gd/x+uyQPTAt3hXs5NxnkqAZ3aqrHd5Bx/R9skyCAWusNlNbw3InDbAK6j166D9asQM8fnmYIa+CXQ== dependencies: - "@commitlint/types" "^17.4.0" + "@commitlint/types" "^17.4.4" chalk "^4.1.0" -"@commitlint/is-ignored@^17.4.2": - version "17.4.2" - resolved "https://registry.yarnpkg.com/@commitlint/is-ignored/-/is-ignored-17.4.2.tgz#2d40a34e071c3e595e485fafe8460457a7b7af9d" - integrity sha512-1b2Y2qJ6n7bHG9K6h8S4lBGUl6kc7mMhJN9gy1SQfUZqe92ToDjUTtgNWb6LbzR1X8Cq4SEus4VU8Z/riEa94Q== +"@commitlint/is-ignored@^17.4.4": + version "17.4.4" + resolved "https://registry.yarnpkg.com/@commitlint/is-ignored/-/is-ignored-17.4.4.tgz#82e03f1abe2de2c0c8c162a250b8d466225e922b" + integrity sha512-Y3eo1SFJ2JQDik4rWkBC4tlRIxlXEFrRWxcyrzb1PUT2k3kZ/XGNuCDfk/u0bU2/yS0tOA/mTjFsV+C4qyACHw== dependencies: - "@commitlint/types" "^17.4.0" + "@commitlint/types" "^17.4.4" semver "7.3.8" -"@commitlint/lint@^17.3.0": - version "17.4.2" - resolved "https://registry.yarnpkg.com/@commitlint/lint/-/lint-17.4.2.tgz#1277cb4d5395e9d6c39cbc351984bac9dcc6b7cd" - integrity sha512-HcymabrdBhsDMNzIv146+ZPNBPBK5gMNsVH+el2lCagnYgCi/4ixrHooeVyS64Fgce2K26+MC7OQ4vVH8wQWVw== +"@commitlint/lint@^17.4.4": + version "17.4.4" + resolved "https://registry.yarnpkg.com/@commitlint/lint/-/lint-17.4.4.tgz#0ecd70b44ec5f4823c2e00e0c4b04ebd41d42856" + integrity sha512-qgkCRRFjyhbMDWsti/5jRYVJkgYZj4r+ZmweZObnbYqPUl5UKLWMf9a/ZZisOI4JfiPmRktYRZ2JmqlSvg+ccw== dependencies: - "@commitlint/is-ignored" "^17.4.2" - "@commitlint/parse" "^17.4.2" - "@commitlint/rules" "^17.4.2" - "@commitlint/types" "^17.4.0" + "@commitlint/is-ignored" "^17.4.4" + "@commitlint/parse" "^17.4.4" + "@commitlint/rules" "^17.4.4" + "@commitlint/types" "^17.4.4" -"@commitlint/load@^17.3.0": - version "17.4.2" - resolved "https://registry.yarnpkg.com/@commitlint/load/-/load-17.4.2.tgz#551875c3e1dce6dc0375dc9c8ad551de8ba35de4" - integrity sha512-Si++F85rJ9t4hw6JcOw1i2h0fdpdFQt0YKwjuK4bk9KhFjyFkRxvR3SB2dPaMs+EwWlDrDBGL+ygip1QD6gmPw== +"@commitlint/load@^17.4.4": + version "17.4.4" + resolved "https://registry.yarnpkg.com/@commitlint/load/-/load-17.4.4.tgz#13fcb553572f265339801cde6dd10ee5eea07f5e" + integrity sha512-z6uFIQ7wfKX5FGBe1AkOF4l/ShOQsaa1ml/nLMkbW7R/xF8galGS7Zh0yHvzVp/srtfS0brC+0bUfQfmpMPFVQ== dependencies: - "@commitlint/config-validator" "^17.4.0" + "@commitlint/config-validator" "^17.4.4" "@commitlint/execute-rule" "^17.4.0" - "@commitlint/resolve-extends" "^17.4.0" - "@commitlint/types" "^17.4.0" + "@commitlint/resolve-extends" "^17.4.4" + "@commitlint/types" "^17.4.4" "@types/node" "*" chalk "^4.1.0" cosmiconfig "^8.0.0" @@ -127,47 +127,47 @@ resolved "https://registry.yarnpkg.com/@commitlint/message/-/message-17.4.2.tgz#f4753a79701ad6db6db21f69076e34de6580e22c" integrity sha512-3XMNbzB+3bhKA1hSAWPCQA3lNxR4zaeQAQcHj0Hx5sVdO6ryXtgUBGGv+1ZCLMgAPRixuc6en+iNAzZ4NzAa8Q== -"@commitlint/parse@^17.4.2": - version "17.4.2" - resolved "https://registry.yarnpkg.com/@commitlint/parse/-/parse-17.4.2.tgz#b0f8a257a1f93387a497408b0b4cadba60ee3359" - integrity sha512-DK4EwqhxfXpyCA+UH8TBRIAXAfmmX4q9QRBz/2h9F9sI91yt6mltTrL6TKURMcjUVmgaB80wgS9QybNIyVBIJA== +"@commitlint/parse@^17.4.4": + version "17.4.4" + resolved "https://registry.yarnpkg.com/@commitlint/parse/-/parse-17.4.4.tgz#8311b12f2b730de6ea0679ae2a37b386bcc5b04b" + integrity sha512-EKzz4f49d3/OU0Fplog7nwz/lAfXMaDxtriidyGF9PtR+SRbgv4FhsfF310tKxs6EPj8Y+aWWuX3beN5s+yqGg== dependencies: - "@commitlint/types" "^17.4.0" + "@commitlint/types" "^17.4.4" conventional-changelog-angular "^5.0.11" conventional-commits-parser "^3.2.2" -"@commitlint/read@^17.2.0": - version "17.4.2" - resolved "https://registry.yarnpkg.com/@commitlint/read/-/read-17.4.2.tgz#4880a05271fb44cefa54d365a17d5753496a6de0" - integrity sha512-hasYOdbhEg+W4hi0InmXHxtD/1favB4WdwyFxs1eOy/DvMw6+2IZBmATgGOlqhahsypk4kChhxjAFJAZ2F+JBg== +"@commitlint/read@^17.4.4": + version "17.4.4" + resolved "https://registry.yarnpkg.com/@commitlint/read/-/read-17.4.4.tgz#de6ec00aad827764153009aa54517e3df2154555" + integrity sha512-B2TvUMJKK+Svzs6eji23WXsRJ8PAD+orI44lVuVNsm5zmI7O8RSGJMvdEZEikiA4Vohfb+HevaPoWZ7PiFZ3zA== dependencies: "@commitlint/top-level" "^17.4.0" - "@commitlint/types" "^17.4.0" + "@commitlint/types" "^17.4.4" fs-extra "^11.0.0" git-raw-commits "^2.0.0" minimist "^1.2.6" -"@commitlint/resolve-extends@^17.4.0": - version "17.4.0" - resolved "https://registry.yarnpkg.com/@commitlint/resolve-extends/-/resolve-extends-17.4.0.tgz#9023da6c70c4ebd173b4b0995fe29f27051da2d3" - integrity sha512-3JsmwkrCzoK8sO22AzLBvNEvC1Pmdn/65RKXzEtQMy6oYMl0Snrq97a5bQQEFETF0VsvbtUuKttLqqgn99OXRQ== +"@commitlint/resolve-extends@^17.4.4": + version "17.4.4" + resolved "https://registry.yarnpkg.com/@commitlint/resolve-extends/-/resolve-extends-17.4.4.tgz#8f931467dea8c43b9fe38373e303f7c220de6fdc" + integrity sha512-znXr1S0Rr8adInptHw0JeLgumS11lWbk5xAWFVno+HUFVN45875kUtqjrI6AppmD3JI+4s0uZlqqlkepjJd99A== dependencies: - "@commitlint/config-validator" "^17.4.0" - "@commitlint/types" "^17.4.0" + "@commitlint/config-validator" "^17.4.4" + "@commitlint/types" "^17.4.4" import-fresh "^3.0.0" lodash.mergewith "^4.6.2" resolve-from "^5.0.0" resolve-global "^1.0.0" -"@commitlint/rules@^17.4.2": - version "17.4.2" - resolved "https://registry.yarnpkg.com/@commitlint/rules/-/rules-17.4.2.tgz#cdf203bc82af979cb319210ef9215cb1de216a9b" - integrity sha512-OGrPsMb9Fx3/bZ64/EzJehY9YDSGWzp81Pj+zJiY+r/NSgJI3nUYdlS37jykNIugzazdEXfMtQ10kmA+Kx2pZQ== +"@commitlint/rules@^17.4.4": + version "17.4.4" + resolved "https://registry.yarnpkg.com/@commitlint/rules/-/rules-17.4.4.tgz#9b33f41e5eb529f916396bac7c62e61f0edd6791" + integrity sha512-0tgvXnHi/mVcyR8Y8mjTFZIa/FEQXA4uEutXS/imH2v1UNkYDSEMsK/68wiXRpfW1euSgEdwRkvE1z23+yhNrQ== dependencies: - "@commitlint/ensure" "^17.4.0" + "@commitlint/ensure" "^17.4.4" "@commitlint/message" "^17.4.2" "@commitlint/to-lines" "^17.4.0" - "@commitlint/types" "^17.4.0" + "@commitlint/types" "^17.4.4" execa "^5.0.0" "@commitlint/to-lines@^17.4.0": @@ -182,10 +182,10 @@ dependencies: find-up "^5.0.0" -"@commitlint/types@^17.0.0", "@commitlint/types@^17.4.0": - version "17.4.0" - resolved "https://registry.yarnpkg.com/@commitlint/types/-/types-17.4.0.tgz#c7c2b97b959f6175c164632bf26208ce417b3f31" - integrity sha512-2NjAnq5IcxY9kXtUeO2Ac0aPpvkuOmwbH/BxIm36XXK5LtWFObWJWjXOA+kcaABMrthjWu6la+FUpyYFMHRvbA== +"@commitlint/types@^17.4.4": + version "17.4.4" + resolved "https://registry.yarnpkg.com/@commitlint/types/-/types-17.4.4.tgz#1416df936e9aad0d6a7bbc979ecc31e55dade662" + integrity sha512-amRN8tRLYOsxRr6mTnGGGvB5EmW/4DDjLMgiwK3CCVEmN6Sr/6xePGEpWaspKkckILuUORCwe6VfDBw6uj4axQ== dependencies: chalk "^4.1.0" @@ -573,18 +573,6 @@ resolved "https://registry.yarnpkg.com/@semantic-release/error/-/error-3.0.0.tgz#30a3b97bbb5844d695eb22f9d3aa40f6a92770c2" integrity sha512-5hiM4Un+tpl4cKw3lV4UgzJj+SmfNIDCLLw0TepzQxz9ZGV5ixnqkzIVF+3tp0ZHgcMKE+VNGHJjEeyFG2dcSw== -"@semantic-release/exec@6.0.3": - version "6.0.3" - resolved "https://registry.yarnpkg.com/@semantic-release/exec/-/exec-6.0.3.tgz#d212fdf19633bdfb553de6cb6c7f8781933224db" - integrity sha512-bxAq8vLOw76aV89vxxICecEa8jfaWwYITw6X74zzlO0mc/Bgieqx9kBRz9z96pHectiTAtsCwsQcUyLYWnp3VQ== - dependencies: - "@semantic-release/error" "^3.0.0" - aggregate-error "^3.0.0" - debug "^4.0.0" - execa "^5.0.0" - lodash "^4.17.4" - parse-json "^5.0.0" - "@semantic-release/git@10.0.1": version "10.0.1" resolved "https://registry.yarnpkg.com/@semantic-release/git/-/git-10.0.1.tgz#c646e55d67fae623875bf3a06a634dd434904498" @@ -687,9 +675,9 @@ integrity sha512-jhuKLIRrhvCPLqwPcx6INqmKeiA5EWrsCOPhrlFSrbrmU4ZMPjj5Ul/oLCMDO98XRUIwVm78xICz4EPCektzeQ== "@types/node@*": - version "18.11.18" - resolved "https://registry.yarnpkg.com/@types/node/-/node-18.11.18.tgz#8dfb97f0da23c2293e554c5a50d61ef134d7697f" - integrity sha512-DHQpWGjyQKSHj3ebjFI/wRKcqQcdR+MoFBygntYOZytCqNfkd2ZC4ARDJ2DQqhjH5p85Nnd3jhUJIXrszFX/JA== + version "18.13.0" + resolved "https://registry.yarnpkg.com/@types/node/-/node-18.13.0.tgz#0400d1e6ce87e9d3032c19eb6c58205b0d3f7850" + integrity sha512-gC3TazRzGoOnoKAhUx+Q0t8S9Tzs74z7m0ipwGpSqQrleP14hKxP4/JUeEQcD3W1/aIpnWl8pHowI7WokuZpXg== "@types/normalize-package-data@^2.4.0": version "2.4.1" @@ -1734,10 +1722,10 @@ humanize-ms@^1.2.1: dependencies: ms "^2.0.0" -husky@8.0.1: - version "8.0.1" - resolved "https://registry.yarnpkg.com/husky/-/husky-8.0.1.tgz#511cb3e57de3e3190514ae49ed50f6bc3f50b3e9" - integrity sha512-xs7/chUH/CKdOCs7Zy0Aev9e/dKOMZf3K1Az1nar3tzlv0jfqnYtu235bstsWTmXOR0EfINrPa97yy4Lz6RiKw== +husky@8.0.3: + version "8.0.3" + resolved "https://registry.yarnpkg.com/husky/-/husky-8.0.3.tgz#4936d7212e46d1dea28fef29bb3a108872cd9184" + integrity sha512-+dQSyqPh4x1hlO1swXBiNb2HzTDN1I2IGLQx1GrBuiqFJfoMrnZWwVmatvSiO+Iz8fBUnf+lekwNo4c2LlXItg== iconv-lite@^0.6.2: version "0.6.3" @@ -2397,9 +2385,9 @@ minimist-options@4.1.0: kind-of "^6.0.3" minimist@^1.2.0, minimist@^1.2.5, minimist@^1.2.6: - version "1.2.7" - resolved "https://registry.yarnpkg.com/minimist/-/minimist-1.2.7.tgz#daa1c4d91f507390437c6a8bc01078e7000c4d18" - integrity sha512-bzfL1YUZsP41gmu/qjrEk0Q6i2ix/cVeAhbCbqH9u3zYutS1cLg00qhrD0M2MVdCcx4Sc0UpP2eBWo9rotpq6g== + version "1.2.8" + resolved "https://registry.yarnpkg.com/minimist/-/minimist-1.2.8.tgz#c1a464e7693302e082a075cee0c057741ac4772c" + integrity sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA== minipass-collect@^1.0.2: version "1.0.2" @@ -2456,11 +2444,9 @@ minipass@^3.0.0, minipass@^3.1.1, minipass@^3.1.6: yallist "^4.0.0" minipass@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/minipass/-/minipass-4.0.0.tgz#7cebb0f9fa7d56f0c5b17853cbe28838a8dbbd3b" - integrity sha512-g2Uuh2jEKoht+zvO6vJqXmYpflPqzRBT+Th2h01DKh5z7wbY/AZ2gCQ78cP70YoHPyFdY30YBV5WxgLOEwOykw== - dependencies: - yallist "^4.0.0" + version "4.0.3" + resolved "https://registry.yarnpkg.com/minipass/-/minipass-4.0.3.tgz#00bfbaf1e16e35e804f4aa31a7c1f6b8d9f0ee72" + integrity sha512-OW2r4sQ0sI+z5ckEt5c1Tri4xTgZwYDxpE54eqWlQloQRoWtXjqt9udJ5Z4dSv7wK+nfFI7FRXyCpBSft+gpFw== minizlib@^2.1.1, minizlib@^2.1.2: version "2.1.2" @@ -2524,10 +2510,6 @@ nerf-dart@^1.0.0: resolved "https://registry.yarnpkg.com/nerf-dart/-/nerf-dart-1.0.0.tgz#e6dab7febf5ad816ea81cf5c629c5a0ebde72c1a" integrity sha512-EZSPZB70jiVsivaBLYDCyntd5eH8NTSMOn3rB+HxwdmKThGELLdYv8qVIMWvZEFy9w8ZZpW9h9OB32l1rGtj7g== -"nitro@ssh://git@github.com:nitro-build/nitro.git#0.9.0": - version "0.9.0" - resolved "ssh://git@github.com:nitro-build/nitro.git#a661e8ada715b68e7b33c62f9a3675a269ee32ca" - node-emoji@^1.11.0: version "1.11.0" resolved "https://registry.yarnpkg.com/node-emoji/-/node-emoji-1.11.0.tgz#69a0150e6946e2f115e9d7ea4df7971e2628301c" @@ -2536,9 +2518,9 @@ node-emoji@^1.11.0: lodash "^4.17.21" node-fetch@^2.6.7: - version "2.6.8" - resolved "https://registry.yarnpkg.com/node-fetch/-/node-fetch-2.6.8.tgz#a68d30b162bc1d8fd71a367e81b997e1f4d4937e" - integrity sha512-RZ6dBYuj8dRSfxpUSu+NsdF1dpPpluJxwOp+6IoDp/sH2QNDSvurYsAa+F1WxY2RjA1iP93xhcsUoYbF2XBqVg== + version "2.6.9" + resolved "https://registry.yarnpkg.com/node-fetch/-/node-fetch-2.6.9.tgz#7c7f744b5cc6eb5fd404e0c7a9fec630a55657e6" + integrity sha512-DJm/CJkZkRjKKj4Zi4BsKVZh3ValV5IR5s7LVZnW+6YMh0W1BfNA8XSs6DLMGYlId5F3KnA70uu2qepcR08Qqg== dependencies: whatwg-url "^5.0.0" @@ -2702,9 +2684,9 @@ npm-user-validate@^1.0.1: integrity sha512-uQwcd/tY+h1jnEaze6cdX/LrhWhoBxfSknxentoqmIuStxUExxjWd3ULMLFPiFUrZKbOVMowH6Jq2FRWfmhcEw== npm@^8.3.0: - version "8.19.3" - resolved "https://registry.yarnpkg.com/npm/-/npm-8.19.3.tgz#adb51bf8886d519dd4df162726d0ad157ecfa272" - integrity sha512-0QjmyPtDxSyMWWD8I91QGbrgx9KzbV6C9FK1liEb/K0zppiZkr5KxXc990G+LzPwBHDfRjUBlO9T1qZ08vl9mA== + version "8.19.4" + resolved "https://registry.yarnpkg.com/npm/-/npm-8.19.4.tgz#65ad6a2dfdd157a4ef4467fb86e8dcd35a43493f" + integrity sha512-3HANl8i9DKnUA89P4KEgVNN28EjSeDCmvEqbzOAuxCFDzdBZzjUl99zgnGpOUumvW5lvJo2HKcjrsc+tfyv1Hw== dependencies: "@isaacs/string-locale-compare" "^1.1.0" "@npmcli/arborist" "^5.6.3" @@ -2805,9 +2787,9 @@ onetime@^5.1.2: mimic-fn "^2.1.0" open@^8.4.0: - version "8.4.0" - resolved "https://registry.yarnpkg.com/open/-/open-8.4.0.tgz#345321ae18f8138f82565a910fdc6b39e8c244f8" - integrity sha512-XgFPPM+B28FtCCgSb9I+s9szOC1vZRSwgWsRUA5ylIxRTgKozqjOCrVOqGsYABPYK5qnfqClxZTFBa8PKt2v6Q== + version "8.4.1" + resolved "https://registry.yarnpkg.com/open/-/open-8.4.1.tgz#2ab3754c07f5d1f99a7a8d6a82737c95e3101cff" + integrity sha512-/4b7qZNhv6Uhd7jjnREh1NjnPxlTq+XNWPG88Ydkj5AILcA5m3ajvcg57pB24EQjKv0dK62XnDqk9c/hkIG5Kg== dependencies: define-lazy-prop "^2.0.0" is-docker "^2.1.1" @@ -3043,10 +3025,10 @@ prettier-plugin-sh@0.12.8: sh-syntax "^0.3.6" synckit "^0.8.1" -prettier@2.8.1: - version "2.8.1" - resolved "https://registry.yarnpkg.com/prettier/-/prettier-2.8.1.tgz#4e1fd11c34e2421bc1da9aea9bd8127cd0a35efc" - integrity sha512-lqGoSJBQNJidqCHE80vqZJHWHRFoNYsSpP9AjFhlhi9ODCJA541svILes/+/1GM3VaL/abZi7cpFzOpdR9UPKg== +prettier@2.8.4: + version "2.8.4" + resolved "https://registry.yarnpkg.com/prettier/-/prettier-2.8.4.tgz#34dd2595629bfbb79d344ac4a91ff948694463c3" + integrity sha512-vIS4Rlc2FNh0BySk3Wkd6xmwxB0FpOndW5fisM5H8hsZSxU2VWVB5CWIkIjWvrHjIhxk2g3bfMKM87zNTrZddw== proc-log@^2.0.0, proc-log@^2.0.1: version "2.0.1" @@ -3591,12 +3573,12 @@ supports-preserve-symlinks-flag@^1.0.0: integrity sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w== synckit@^0.8.1: - version "0.8.4" - resolved "https://registry.yarnpkg.com/synckit/-/synckit-0.8.4.tgz#0e6b392b73fafdafcde56692e3352500261d64ec" - integrity sha512-Dn2ZkzMdSX827QbowGbU/4yjWuvNaCoScLLoMo/yKbu+P4GBR6cRGKZH27k6a9bRzdqcyd1DE96pQtQ6uNkmyw== + version "0.8.5" + resolved "https://registry.yarnpkg.com/synckit/-/synckit-0.8.5.tgz#b7f4358f9bb559437f9f167eb6bc46b3c9818fa3" + integrity sha512-L1dapNV6vu2s/4Sputv8xGsCdAVlb5nRDMFU/E27D44l5U6cw1g0dGd45uLc+OXjNMmF4ntiMdCimzcjFKQI8Q== dependencies: "@pkgr/utils" "^2.3.1" - tslib "^2.4.0" + tslib "^2.5.0" tar@^6.1.0, tar@^6.1.11, tar@^6.1.2: version "6.1.13" @@ -3715,7 +3697,7 @@ ts-node@^10.8.1: v8-compile-cache-lib "^3.0.1" yn "3.1.1" -tslib@^2.4.0: +tslib@^2.4.0, tslib@^2.5.0: version "2.5.0" resolved "https://registry.yarnpkg.com/tslib/-/tslib-2.5.0.tgz#42bfed86f5787aeb41d031866c8f402429e0fddf" integrity sha512-336iVw3rtn2BUK7ORdIAHTyxHGRIHVReokCR3XjbckJMK7ms8FysBfhLR8IXnAgy7T0PTPNBWKiH514FOW/WSg== @@ -3746,9 +3728,9 @@ type-fest@^1.0.2: integrity sha512-yGSza74xk0UG8k+pLh5oeoYirvIiWo5t0/o3zHHAO2tRDiZcxWP7fywNlXhqb6/r6sWvwi+RsyQMWhVLe4BVuA== typescript@^4.6.4: - version "4.9.4" - resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.9.4.tgz#a2a3d2756c079abda241d75f149df9d561091e78" - integrity sha512-Uz+dTXYzxXXbsFpM86Wh3dKCxrQqUcVMxwU54orwlJjOpO3ao8L7j5lH+dWfTwgCwIuM9GQ2kvVotzYJMXTBZg== + version "4.9.5" + resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.9.5.tgz#095979f9bcc0d09da324d58d03ce8f8374cbe65a" + integrity sha512-1FXk9E2Hm+QzZQ7z+McJiHL4NW1F2EzMu9Nq9i3zAaGqibafqYwCVU6WyWAuyQRRzOlxou8xZSyXLEN8oKj24g== uglify-js@^3.1.4: version "3.17.4"