Skip to content

AI-native knowledge base & Evernote/Obsidian alternative with instant sync & native MCP. Free on Cloudflare or self-hosted via Docker.

fix(release): tolerate unrelated recovery install failure

tianma-ifaade39867bb8
diff --git a/.github/workflows/store-delivery.yml b/.github/workflows/store-delivery.yml
index cad7e676..c6e5efa3 100644
--- a/.github/workflows/store-delivery.yml
+++ b/.github/workflows/store-delivery.yml
@@ -165,10 +165,19 @@ jobs:
token: ${{ secrets.EXPO_TOKEN }}
- name: Install dependencies
+ if: ${{ !inputs.recover_play_apk }}
run: >-
bun install --frozen-lockfile
--cache-dir "$RUNNER_TEMP/edgeever-bun-cache-${GITHUB_RUN_ID}-${GITHUB_RUN_ATTEMPT}"
+ - name: Install Play APK recovery dependency
+ if: ${{ inputs.recover_play_apk }}
+ run: |
+ if ! bun install --frozen-lockfile \
+ --cache-dir "$RUNNER_TEMP/edgeever-bun-cache-${GITHUB_RUN_ID}-${GITHUB_RUN_ATTEMPT}"; then
+ node --input-type=module -e "await import('google-auth-library')"
+ fi
+
- name: Restore Android upload keystore
if: ${{ !inputs.recover_play_apk }}
env:
diff --git a/scripts/store-delivery.test.mjs b/scripts/store-delivery.test.mjs
index e1849a6c..1cbb5476 100644
--- a/scripts/store-delivery.test.mjs
+++ b/scripts/store-delivery.test.mjs
@@ -52,7 +52,7 @@ describe("store delivery command", () => {
workflow.match(
/edgeever-bun-cache-\$\{GITHUB_RUN_ID\}-\$\{GITHUB_RUN_ATTEMPT\}/g,
),
- ).toHaveLength(2);
+ ).toHaveLength(3);
});
test("replaces the GitHub APK with the Play-signed universal APK", () => {
@@ -67,7 +67,11 @@ describe("store delivery command", () => {
expect(workflow).toContain('gh release upload "$RELEASE_TAG" "$apk_path"');
expect(
workflow.match(/if: \$\{\{ !inputs\.recover_play_apk \}\}/g),
- ).toHaveLength(5);
+ ).toHaveLength(6);
+ expect(workflow).toContain("if: ${{ inputs.recover_play_apk }}");
+ expect(workflow).toContain(
+ "node --input-type=module -e \"await import('google-auth-library')\"",
+ );
});
test("can prepare a matching Draft before formal publication", () => {