From bb502ef65ede5f28762555bd7751e66e0ea8bff3 Mon Sep 17 00:00:00 2001 From: aeneasr <3372410+aeneasr@users.noreply.github.com> Date: Fri, 5 Jul 2024 16:49:10 +0200 Subject: [PATCH] chore: make dart check more verbose --- scripts/release.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/scripts/release.sh b/scripts/release.sh index 1b90fa247f..7d8bca6955 100755 --- a/scripts/release.sh +++ b/scripts/release.sh @@ -120,7 +120,7 @@ typescript_fetch() { (cd "${dir}"; npm install; npm run build) (cd "${dir}"; npm version -f --no-git-tag-version "${VERSION}" || true; npm publish --access public) - to_git "ts-fetch" "yes" + to_git "typescript-fetch" "yes" } java() { @@ -197,7 +197,13 @@ dart() { dir="clients/${PROJECT}/dart" mkdir -p ~/.pub-cache || true set +x + + if [ -z ${DART_SERVICE_ACCOUNT+x} ]; then echo "Variable DART_SERVICE_ACCOUNT MUST be set."; fi + echo "$DART_SERVICE_ACCOUNT" | base64 -d > ~/.pub-cache/key-file.json + set -x + ls ~/.pub-cache/ + set +x gcloud auth activate-service-account --key-file=~/.pub-cache/key-file.json gcloud auth print-identity-token \ --audiences=https://pub.dev \