Skip to content

Commit 3ea2272

Browse files
committed
test new version
1 parent dc5d64d commit 3ea2272

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

.github/workflows/eas-build.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,9 @@ on:
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:

0 commit comments

Comments
 (0)