File tree Expand file tree Collapse file tree 1 file changed +15
-6
lines changed
Expand file tree Collapse file tree 1 file changed +15
-6
lines changed Original file line number Diff line number Diff line change 5858 default : true
5959
6060jobs :
61- Validate :
61+ validate-new-version :
6262 runs-on : ubuntu-latest
6363 permissions :
6464 contents : read
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 : |
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
You can’t perform that action at this time.
0 commit comments