Skip to content

Commit

Permalink
remove unsupported react-native build and use yarn for install and li…
Browse files Browse the repository at this point in the history
…nting
  • Loading branch information
norbertschuler committed Jun 25, 2023
1 parent 207416d commit 24c973d
Showing 1 changed file with 3 additions and 42 deletions.
45 changes: 3 additions & 42 deletions .github/workflows/ubuntu_build_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,47 +17,8 @@ jobs:
- name: Checkout branch
uses: actions/checkout@v2

- name: Caching node modules
uses: actions/cache@v1
with:
path: ~/.npm
key: ${{ runner.os }}-node-filealert-${{ hashFiles('package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-filealert-
- name: Upgrade npm to latest version
run: sudo npm i -g npm@latest

- name: Install react-native CLI
run: "sudo npm install -g react-native-cli"

- name: Install npm dependencies
run: npm install
- name: Install dependencies
run: yarn nativeapp install

- name: Linting
run: npm run lint:errors

- name: Setting Environment Variables
env:
MAPBOXGL_ACCCESS_TOKEN: ${{ secrets.MAPBOXGL_ACCCESS_TOKEN }}
BUGSNAP_CLIENT_KEY: ${{ secrets.BUGSNAP_CLIENT_KEY }}
run: |
echo "MAPBOXGL_ACCCESS_TOKEN=$MAPBOXGL_ACCCESS_TOKEN" >> .env
echo "BUGSNAP_CLIENT_KEY=$BUGSNAP_CLIENT_KEY" >> .env
- name: Build Android app
run: |
react-native bundle \
--platform android \
--dev false \
--entry-file index.js \
--bundle-output android-release.bundle \
--sourcemap-output android-release.bundle.map
- name: Build iOS app
run: |
react-native bundle \
--platform ios \
--dev false \
--entry-file index.js \
--bundle-output ios-release.bundle \
--sourcemap-output ios-release.bundle.map
run: yarn nativeapp lint:errors

0 comments on commit 24c973d

Please sign in to comment.