Skip to content

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

fix: use official EAS CLI setup for store delivery

tianma-if2d0a5906de74
diff --git a/.github/workflows/store-delivery.yml b/.github/workflows/store-delivery.yml
index 8c666e57..eddb6638 100644
--- a/.github/workflows/store-delivery.yml
+++ b/.github/workflows/store-delivery.yml
@@ -123,6 +123,12 @@ jobs:
with:
bun-version: 1.3.14
+ - name: Set up EAS CLI
+ uses: expo/expo-github-action@v8
+ with:
+ eas-version: 21.4.0
+ token: ${{ secrets.EXPO_TOKEN }}
+
- name: Restore Android upload keystore
env:
ANDROID_KEYSTORE_BASE64: ${{ secrets.ANDROID_KEYSTORE_BASE64 }}
@@ -155,7 +161,7 @@ jobs:
EXPO_TOKEN: ${{ secrets.EXPO_TOKEN }}
run: |
test -n "$EXPO_TOKEN"
- bunx eas-cli submit \
+ eas submit \
--platform android \
--profile "store-${ANDROID_TRACK}" \
--path android/app/build/outputs/bundle/release/app-release.aab \
@@ -185,6 +191,12 @@ jobs:
with:
bun-version: 1.3.14
+ - name: Set up EAS CLI
+ uses: expo/expo-github-action@v8
+ with:
+ eas-version: 21.4.0
+ token: ${{ secrets.EXPO_TOKEN }}
+
- name: Set up Ruby and fastlane
uses: ruby/setup-ruby@v1
with:
@@ -203,7 +215,7 @@ jobs:
run: |
test -n "$EXPO_TOKEN"
build_json="$(
- bunx eas-cli build \
+ eas build \
--platform ios \
--profile production \
--message "Store delivery ${RELEASE_TAG}" \
@@ -226,7 +238,7 @@ jobs:
env:
EXPO_TOKEN: ${{ secrets.EXPO_TOKEN }}
run: |
- bunx eas-cli submit \
+ eas submit \
--platform ios \
--profile store-ios \
--id "${{ steps.build.outputs.build_id }}" \
diff --git a/scripts/store-delivery.test.mjs b/scripts/store-delivery.test.mjs
index 4ed5df59..f1d6a376 100644
--- a/scripts/store-delivery.test.mjs
+++ b/scripts/store-delivery.test.mjs
@@ -1,4 +1,5 @@
import { describe, expect, test } from "bun:test";
+import { readFileSync } from "node:fs";
import { parseStoreDeliveryArgs } from "./store-delivery.mjs";
describe("store delivery command", () => {
@@ -28,4 +29,15 @@ describe("store delivery command", () => {
parseStoreDeliveryArgs(["--release", "latest"])
).toThrow("stable vX.Y.Z");
});
+
+ test("uses the pinned official EAS CLI setup in store jobs", () => {
+ const workflow = readFileSync(
+ new URL("../.github/workflows/store-delivery.yml", import.meta.url),
+ "utf8",
+ );
+
+ expect(workflow).not.toContain("bunx eas-cli");
+ expect(workflow.match(/uses: expo\/expo-github-action@v8/g)).toHaveLength(2);
+ expect(workflow.match(/eas-version: 21\.4\.0/g)).toHaveLength(2);
+ });
});