File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed
Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments