From 9c310c01c888b99cff949756b2fa32f9a0d92555 Mon Sep 17 00:00:00 2001 From: Adrian Castro <22133246+castdrian@users.noreply.github.com> Date: Tue, 23 Jan 2024 01:31:41 +0100 Subject: [PATCH] fix(workflow): bump version before building lol --- .github/workflows/build-mobile.yml | 30 +++++++++++++++++++----------- 1 file changed, 19 insertions(+), 11 deletions(-) diff --git a/.github/workflows/build-mobile.yml b/.github/workflows/build-mobile.yml index 49293f8..141ee0f 100644 --- a/.github/workflows/build-mobile.yml +++ b/.github/workflows/build-mobile.yml @@ -10,6 +10,25 @@ permissions: contents: write jobs: + bump-version: + runs-on: ubuntu-latest + if: github.ref == 'refs/heads/master' + + steps: + - name: Checkout code + uses: actions/checkout@v3 + with: + fetch-depth: 0 + + - name: Automated Version Bump + uses: phips28/gh-action-bump-version@v10.1.1 + with: + skip-tag: 'true' + commit-message: 'chore: bump mobile version to {{version}} [skip ci]' + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + PACKAGEJSON_DIR: 'apps/mobile' + build-android: runs-on: ubuntu-latest @@ -107,17 +126,6 @@ jobs: steps: - name: Checkout code uses: actions/checkout@v3 - with: - fetch-depth: 0 - - - name: Automated Version Bump - uses: phips28/gh-action-bump-version@v10.1.1 - with: - skip-tag: 'true' - commit-message: 'chore: bump version to {{version}} [skip ci]' - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - PACKAGEJSON_DIR: 'apps/mobile' - name: Download build artifacts uses: actions/download-artifact@v4