Skip to content

Commit 91bdae3

Browse files
Set CI/CD Versions error fixed w/ change to jq.
1 parent c6c127b commit 91bdae3

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

.github/workflows/eas-android-build.yml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,9 @@ jobs:
6666
- name: "🏷️ Set CI/CD Versions"
6767
id: version-control
6868
run: |
69-
# Set production or preview version
69+
# Use version from version.json (requires jq)
7070
if [ "${{ github.ref }}" == "refs/heads/main" ]; then
71-
APP_VERSION=$(node -p "require('./app.config.js').expo.version")
71+
APP_VERSION=$(jq -r '.version' version.json)
7272
IS_PRODUCTION="true"
7373
else
7474
APP_VERSION="1.0.0-prerelease.${{ github.run_number }}"
@@ -107,12 +107,8 @@ jobs:
107107
run: |
108108
echo "🔄 Initializing build process..."
109109
sudo apt-get install -y jq
110-
111-
# Execute build and capture metadata
112110
BUILD_JSON=$(npx eas build -p android --profile production --non-interactive --json)
113111
BUILD_ID=$(echo "$BUILD_JSON" | jq -r '.[0].id')
114-
115-
# Export build ID for downstream jobs
116112
echo "BUILD_ID=$BUILD_ID" >> $GITHUB_ENV
117113
echo "BUILD_ID=$BUILD_ID" >> $GITHUB_OUTPUT
118114

0 commit comments

Comments
 (0)