Update outdated packages in package.json (#463) #143
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: Build Android apk | |
on: | |
workflow_dispatch: | |
inputs: | |
comments: | |
description: 'Comments' | |
required: true | |
default: 'Manual build Actions' | |
push: | |
branches: | |
- develop | |
jobs: | |
build-android-apk: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [16.x] | |
steps: | |
- name: Getting the repo | |
uses: actions/checkout@v2 | |
- name: Installing Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v1 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: Install React Native CLI | |
run: | | |
yarn global add react-native-cli | |
- name: Install yarn dependencies | |
run: | | |
yarn install | |
- name: Make Gradlew Executable | |
run: cd android && chmod +x ./gradlew | |
- name: Build Android Release | |
run: | | |
cd android && ./gradlew assembleRelease --no-daemon | |
- name: Upload Artifact | |
uses: actions/upload-artifact@v1 | |
with: | |
name: app-release.apk | |
path: android/app/build/outputs/apk/release/ | |
- name: Download a single artifact | |
uses: actions/download-artifact@v3 | |
with: | |
name: app-release.apk | |
- name: Update Pull Request File | |
run: | | |
echo "APK: \`app-release.apk\`" >> PULL_REQUEST.md | |
cat pull_request.md # Display the updated file for verification |