Skip intl:compile if not needed (#8837)
* skip intl compile if not needed * add intl:compile to pull request ci * compile -> build just to match others
This commit is contained in:
@@ -50,6 +50,7 @@ jobs:
|
|||||||
git config --global user.name "github-actions[bot]"
|
git config --global user.name "github-actions[bot]"
|
||||||
git merge --no-edit ${{ github.head_ref }}
|
git merge --no-edit ${{ github.head_ref }}
|
||||||
yarn install
|
yarn install
|
||||||
|
yarn intl:build
|
||||||
|
|
||||||
- name: 🔦 Generate stats file for PR
|
- name: 🔦 Generate stats file for PR
|
||||||
run: |
|
run: |
|
||||||
@@ -73,6 +74,7 @@ jobs:
|
|||||||
if: ${{ !steps.get-base-stats.outputs.cache-hit }}
|
if: ${{ !steps.get-base-stats.outputs.cache-hit }}
|
||||||
run: |
|
run: |
|
||||||
yarn install
|
yarn install
|
||||||
|
yarn intl:build
|
||||||
yarn generate-webpack-stats-file
|
yarn generate-webpack-stats-file
|
||||||
mv stats.json stats-base.json
|
mv stats.json stats-base.json
|
||||||
|
|
||||||
@@ -143,4 +145,3 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
header: fingerprint-diff
|
header: fingerprint-diff
|
||||||
delete: true
|
delete: true
|
||||||
|
|
||||||
|
|||||||
+2
-1
@@ -20,7 +20,7 @@
|
|||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"prepare": "is-ci || husky install",
|
"prepare": "is-ci || husky install",
|
||||||
"postinstall": "patch-package && yarn intl:compile",
|
"postinstall": "patch-package && yarn intl:compile-if-needed",
|
||||||
"prebuild": "expo prebuild --clean",
|
"prebuild": "expo prebuild --clean",
|
||||||
"android": "expo run:android",
|
"android": "expo run:android",
|
||||||
"android:prod": "expo run:android --variant release",
|
"android:prod": "expo run:android --variant release",
|
||||||
@@ -58,6 +58,7 @@
|
|||||||
"intl:extract": "lingui extract --clean --locale en",
|
"intl:extract": "lingui extract --clean --locale en",
|
||||||
"intl:extract:all": "lingui extract --clean",
|
"intl:extract:all": "lingui extract --clean",
|
||||||
"intl:compile": "lingui compile",
|
"intl:compile": "lingui compile",
|
||||||
|
"intl:compile-if-needed": "is-ci || [ -f src/locale/locales/en/messages.js ] || yarn intl:compile",
|
||||||
"intl:pull": "crowdin download translations --verbose -b main",
|
"intl:pull": "crowdin download translations --verbose -b main",
|
||||||
"intl:push": "crowdin push translations --verbose -b main",
|
"intl:push": "crowdin push translations --verbose -b main",
|
||||||
"nuke": "rm -rf ./node_modules && rm -rf ./ios && rm -rf ./android",
|
"nuke": "rm -rf ./node_modules && rm -rf ./ios && rm -rf ./android",
|
||||||
|
|||||||
Reference in New Issue
Block a user