Skip to content

fix: ensure one reachability check in-flight at once / proper useEffect listener cleanup #393

fix: ensure one reachability check in-flight at once / proper useEffect listener cleanup

fix: ensure one reachability check in-flight at once / proper useEffect listener cleanup #393

Workflow file for this run

name: Actions
on:
pull_request:
push:
branches:
- master
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '16'
cache: 'yarn'
- run: yarn install --frozen-lockfile
- run: yarn test
deploy:
if: github.repository == 'react-native-netinfo/react-native-netinfo' && github.ref == 'refs/heads/master'
needs: test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '16'
cache: 'yarn'
- run: yarn install --frozen-lockfile
- run: yarn ci:publish
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}