From de09cd3829f4c1d96ee30f82bb4f29f51a1ef6c8 Mon Sep 17 00:00:00 2001 From: linonetwo Date: Fri, 9 Feb 2024 23:57:05 +0800 Subject: [PATCH] refactor: onlu run gradle fix in CI --- .github/workflows/build-f-droid-apk.yml | 2 ++ package.json | 3 +-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-f-droid-apk.yml b/.github/workflows/build-f-droid-apk.yml index 22d938f..43c201a 100644 --- a/.github/workflows/build-f-droid-apk.yml +++ b/.github/workflows/build-f-droid-apk.yml @@ -69,6 +69,8 @@ jobs: run: pnpm install - name: Initialize and Update Submodules run: pnpm run init-submodules + - name: Fix gradle error + run: pnpm exec zx scripts/fix-gradle.mjs ## configure cash for gradle : will help to reduce build time - name: Cache Gradle Wrapper and Dependencies diff --git a/package.json b/package.json index 07eaad3..5b220ea 100644 --- a/package.json +++ b/package.json @@ -13,8 +13,7 @@ "start:tunnel": "expo start --tunnel --android", "start:devClient": "npx expo start --dev-client --android", "web": "expo start --web", - "init-submodules": "git submodule update --init --recursive", - "postinstall": "zx scripts/fix-gradle.mjs" + "init-submodules": "git submodule update --init --recursive" }, "dependencies": { "@react-native-async-storage/async-storage": "1.21.0",