Merge branch 'master' into build

This commit is contained in:
Aman Singh
2024-02-13 13:05:43 +05:30
committed by GitHub

49
.github/workflows/codePush.yml vendored Normal file
View File

@@ -0,0 +1,49 @@
name: code-push-cli
on:
workflow_dispatch:
inputs:
environment:
description: Choose build environment
required: true
type: choice
options:
- QA
- Prod
target_versions:
description: please enter target versions
required: true
type: string
default: "2.3.4"
description:
description: Enter please add change log
required: true
type: string
default: "login sso"
jobs:
generate:
runs-on: [ default ]
steps:
- name: Checkout
uses: actions/checkout@v2
with:
token: ${{ secrets.MY_REPO_PAT }}
submodules: recursive
- name: Set Node.js 16.x
uses: actions/setup-node@v3
with:
node-version: 16.x
- name: Install yarn
run: npm install --global yarn
- name: Install appcenter cli
run: npm install -g appcenter-cli
- name: Install dependency
run: yarn
- name: AppCenter login
run: appcenter login --token ${{ secrets.APP_CENTER_LOGIN_TOKEN }}
- name: CodePush QA
if: ((github.event.inputs.environment == 'QA' || inputs.environment == 'QA'))
run: yarn move:qa && appcenter codepush release-react -a nfa-navi.com/nfa-app -d Staging -t "${{github.event.inputs.target_versions}}" --description "${{github.event.inputs.description}}"
- name: CodePush Prod
if: ((github.event.inputs.environment == 'Prod' || inputs.environment == 'Prod'))
run: yarn move:prod && appcenter codepush release-react -a nfa-navi.com/nfa-app -d Production -t "${{github.event.inputs.target_versions}}" --description "${{github.event.inputs.description}}"