fix(release): tolerate unrelated recovery install failure
This commit is contained in:
1 parent
3b85253472
commit
aade39867b
2 files changed
+15
-2
No files matched your search
@@ -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:
|
||||
|
||||
@@ -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", () => {
|
||||
|
||||
Reference in new issue
Block a user