Skip to content

Commit c343903

Browse files
committed
feat: enable prebuild and build steps, add Xcode setup for iOS builds
1 parent 9bcf43b commit c343903

File tree

1 file changed

+15
-6
lines changed

1 file changed

+15
-6
lines changed

.github/workflows/eas-build.yml

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ on:
5858
default: true
5959

6060
jobs:
61-
Validate:
61+
validate-new-version:
6262
runs-on: ubuntu-latest
6363
permissions:
6464
contents: read
@@ -67,6 +67,8 @@ jobs:
6767
uses: actions/checkout@v3
6868
with:
6969
fetch-depth: 0
70+
- name: 📦 Setup Node + PNPM
71+
uses: ./.github/actions/setup-node-pnpm-install
7072
- name: Validate new version
7173
if: inputs.new-version
7274
run: |
@@ -82,7 +84,8 @@ jobs:
8284
echo "❌ New version must be greater than or equal to current version ($CURRENT_VERSION)"
8385
exit 1
8486
fi
85-
Build:
87+
build:
88+
needs: validate-new-version
8689
runs-on: ${{ matrix.os }}
8790
permissions:
8891
contents: write
@@ -132,12 +135,18 @@ jobs:
132135
git config --global user.name "github-actions[bot]"
133136
git config --global user.email "github-actions[bot]@users.noreply.github.com"
134137
pnpm version ${{ inputs.new-version }} -m "chore: set app version to ${{ inputs.new-version }}"
138+
139+
- name: Setup latest version of Xcode
140+
uses: maxim-lobanov/setup-xcode@v1
141+
if: matrix.platform == 'ios'
142+
with:
143+
xcode-version: latest
135144

136-
# - name: ⚙️ Run Prebuild
137-
# run: pnpm prebuild:${{ inputs.environment }}
145+
- name: ⚙️ Run Prebuild
146+
run: pnpm prebuild:${{ inputs.environment }}
138147

139-
# - name: 📱 Run Build for ${{ matrix.platform }}
140-
# run: pnpm build:${{ inputs.environment }}:${{ matrix.platform }} --non-interactive --no-wait --message "Build ${{ inputs.environment }} for ${{ matrix.platform }}" --local
148+
- name: 📱 Run Build for ${{ matrix.platform }}
149+
run: pnpm build:${{ inputs.environment }}:${{ matrix.platform }} --non-interactive --no-wait --message "Build ${{ inputs.environment }} for ${{ matrix.platform }}" --local
141150

142151
- name: 📦 Push changes to repository
143152
if: inputs.new-version

0 commit comments

Comments
 (0)