diff --git a/.github/workflows/build-submit-android.yml b/.github/workflows/build-submit-android.yml index 6fa177fb09..8cbd90984c 100644 --- a/.github/workflows/build-submit-android.yml +++ b/.github/workflows/build-submit-android.yml @@ -49,10 +49,14 @@ jobs: - name: āš™ļø Install dependencies run: yarn install + - name: šŸ”¤ Compile translations + run: yarn intl:build + - name: āœļø Write environment variables run: | + export json='${{ secrets.GOOGLE_SERVICES_TOKEN }}' echo "${{ secrets.ENV_TOKEN }}" > .env - echo "${{ secrets.GOOGLE_SERVICES_TOKEN }}" > google-services.json + echo "$json" > google-services.json - name: šŸ—ļø EAS Build run: yarn use-build-number eas build -p android --profile production --local --output build.aab --non-interactive diff --git a/.github/workflows/build-submit-ios.yml b/.github/workflows/build-submit-ios.yml index b676780645..f5188b4b4b 100644 --- a/.github/workflows/build-submit-ios.yml +++ b/.github/workflows/build-submit-ios.yml @@ -60,6 +60,9 @@ jobs: # change unless the yarn version changes as well. key: ${{ runner.os }}-pods-${{ hashFiles('yarn.lock') }} + - name: šŸ”¤ Compile translations + run: yarn intl:build + - name: āœļø Write environment variables run: | echo "${{ secrets.ENV_TOKEN }}" > .env diff --git a/package.json b/package.json index 4051849bfe..2d520b4be8 100644 --- a/package.json +++ b/package.json @@ -36,7 +36,7 @@ "perf:test:measure": "NODE_ENV=test flashlight test --bundleId xyz.blueskyweb.app --testCommand 'yarn perf:test' --duration 150000 --resultsFilePath .perf/results.json", "perf:test:results": "NODE_ENV=test flashlight report .perf/results.json", "perf:measure": "NODE_ENV=test flashlight measure", - "intl:build": "yarn intl:check && yarn intl:compile", + "intl:build": "yarn intl:extract && yarn intl:compile", "intl:check": "yarn intl:extract && git diff-index -G'(^[^\\*# /])|(^#\\w)|(^\\s+[^\\*#/])' HEAD || (echo '\nāš ļø i18n detected un-extracted translations\n' && exit 1)", "intl:extract": "lingui extract", "intl:compile": "lingui compile",