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 66
66
- name : " 🏷️ Set CI/CD Versions"
67
67
id : version-control
68
68
run : |
69
- # Set production or preview version
69
+ # Use version from version.json (requires jq)
70
70
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 )
72
72
IS_PRODUCTION="true"
73
73
else
74
74
APP_VERSION="1.0.0-prerelease.${{ github.run_number }}"
@@ -107,12 +107,8 @@ jobs:
107
107
run : |
108
108
echo "🔄 Initializing build process..."
109
109
sudo apt-get install -y jq
110
-
111
- # Execute build and capture metadata
112
110
BUILD_JSON=$(npx eas build -p android --profile production --non-interactive --json)
113
111
BUILD_ID=$(echo "$BUILD_JSON" | jq -r '.[0].id')
114
-
115
- # Export build ID for downstream jobs
116
112
echo "BUILD_ID=$BUILD_ID" >> $GITHUB_ENV
117
113
echo "BUILD_ID=$BUILD_ID" >> $GITHUB_OUTPUT
118
114
You can’t perform that action at this time.
0 commit comments