diff --git a/.github/workflows/mobile.release.dev.yml b/.github/workflows/mobile.release.dev.yml index 1571c6dcc..714208d97 100644 --- a/.github/workflows/mobile.release.dev.yml +++ b/.github/workflows/mobile.release.dev.yml @@ -19,7 +19,7 @@ jobs: uses: actions/checkout@v2 - name: Export version from package.json run: | - echo "PACKAGE_VERSION=$(grep '"version"' package.json | cut -d '"' -f 4)" >> $GITHUB_ENV + echo "PACKAGE_VERSION=$(grep '"version"' package.json | cut -d '"' -f 4 | cut -d "-" -f 1)" >> $GITHUB_ENV - name: Setup react-native kernel and increase watchers run: echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p - name: Decode Dev Android keystore @@ -59,7 +59,7 @@ jobs: uses: actions/checkout@v2 - name: Export version from package.json run: | - echo "PACKAGE_VERSION=$(grep '"version"' package.json | cut -d '"' -f 4)" >> $GITHUB_ENV + echo "PACKAGE_VERSION=$(grep '"version"' package.json | cut -d '"' -f 4 | cut -d "-" -f 1)" >> $GITHUB_ENV - name: Ruby Setup for Fastlane uses: ruby/setup-ruby@v1 - name: Install dependencies diff --git a/.github/workflows/mobile.release.prod.yml b/.github/workflows/mobile.release.prod.yml index b0ab33811..99c84dca4 100644 --- a/.github/workflows/mobile.release.prod.yml +++ b/.github/workflows/mobile.release.prod.yml @@ -18,7 +18,7 @@ jobs: uses: actions/checkout@v2 - name: Export version from package.json run: - echo "PACKAGE_VERSION=$(grep '"version"' package.json | cut -d '"' -f 4)" >> $GITHUB_ENV + echo "PACKAGE_VERSION=$(grep '"version"' package.json | cut -d '"' -f 4 | cut -d "-" -f 1)" >> $GITHUB_ENV - name: Setup react-native kernel and increase watchers run: echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p - name: Decode Production Android keystore @@ -63,7 +63,7 @@ jobs: uses: actions/checkout@v2 - name: Export version from package.json run: - echo "PACKAGE_VERSION=$(grep '"version"' package.json | cut -d '"' -f 4)" >> $GITHUB_ENV + echo "PACKAGE_VERSION=$(grep '"version"' package.json | cut -d '"' -f 4 | cut -d "-" -f 1)" >> $GITHUB_ENV - name: Install dependencies run: yarn install && yarn install:pods - run: yarn build:mobile