File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed
Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change 3333 - staging
3434 - qa
3535 - production
36+ new-version :
37+ type : string
38+ description : ' New version (e.g. 1.0.0)'
3639 android :
3740 type : boolean
3841 description : ' Build for Android'
@@ -82,12 +85,22 @@ jobs:
8285 - name : Create environment file
8386 run : echo "${{ secrets.ENVIRONMENT_FILE }}" > .env.${{ inputs.environment }}
8487
88+ - name : Update version in package.json
89+ if : inputs.new-version
90+ run : |
91+ pnpm version ${{ inputs.new-version }}
92+
8593 - name : ⚙️ Run Prebuild
8694 run : pnpm prebuild:${{ inputs.environment }}
8795
8896 - name : 📱 Run Build for ${{ matrix.platform }}
8997 run : pnpm build:${{ inputs.environment }}:${{ matrix.platform }} --non-interactive --no-wait --message "Build ${{ inputs.environment }} for ${{ matrix.platform }}" --local
9098
99+ - name : 📦 Push changes to repository
100+ if : inputs.new-version
101+ run : |
102+ git push
103+
91104 - name : Upload ${{ matrix.platform }} Build
92105 uses : actions/upload-artifact@v4
93106 with :
You can’t perform that action at this time.
0 commit comments