fix: fix phone number usage in Beilinson questions Whatsapp link #695
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Continuous Deployment | |
on: | |
push: | |
branches: | |
- master | |
workflow_dispatch: | |
inputs: | |
version: | |
description: "Commit to deploy to STG" | |
required: false | |
jobs: | |
prettier: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- uses: actions/cache@v2 | |
with: | |
path: "**/node_modules" | |
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }} | |
- name: Install Prettier | |
run: yarn install | |
- name: Run prettier | |
run: npx prettier --check . | |
staging_deployment: | |
strategy: | |
matrix: | |
app: ["donor", "coordinator"] | |
fail-fast: true | |
name: ${{ matrix.app }} staging deployment | |
runs-on: ubuntu-latest | |
steps: | |
- name: Setup timezone | |
uses: zcong1993/setup-timezone@master | |
with: | |
timezone: Asia/Jerusalem | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- uses: actions/cache@v2 | |
with: | |
path: "**/node_modules" | |
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }} | |
- name: Install Dependencies | |
run: yarn install | |
- name: Test Common | |
run: yarn workspace @zm-blood-components/common test | |
- name: Build Common | |
run: yarn workspace @zm-blood-components/common build | |
- name: Bump tag version (dry run) | |
id: bumpVersion | |
uses: anothrNick/github-tag-action@1.26.0 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
WITH_V: true | |
DEFAULT_BUMP: patch | |
DRY_RUN: true | |
- name: Set tag before build | |
run: echo "REACT_APP_VERSION=${{ steps.bumpVersion.outputs.new_tag }}" >> "$GITHUB_ENV" | |
- name: Test ${{ matrix.app }} | |
run: yarn workspace @zm-blood-components/${{ matrix.app }} test | |
- name: Build ${{ matrix.app }} | |
run: yarn workspace @zm-blood-components/${{ matrix.app }} build | |
- name: Deploy to Firebase Hosting | |
uses: w9jds/firebase-action@master | |
with: | |
args: deploy --only hosting:${{ matrix.app }} -P staging | |
env: | |
FIREBASE_TOKEN: ${{ secrets.FIREBASE_TOKEN }} | |
version_bump: | |
name: Git Version Bump | |
needs: [staging_deployment] | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
fetch-depth: "0" | |
- name: Bump version and push tag | |
uses: anothrNick/github-tag-action@1.26.0 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
WITH_V: true | |
DEFAULT_BUMP: patch |