Skip to content

chore: use setup-node@v4 with node v20 on GH Actions #45

chore: use setup-node@v4 with node v20 on GH Actions

chore: use setup-node@v4 with node v20 on GH Actions #45

Workflow file for this run

name: lint-js
on:
pull_request:
branches: [main]
paths:
- "packages/app/src/**"
- "packages/app/package.json"
- "packages/app/tsconfig.json"
- "packages/mobile/babel.config.js"
- "packages/mobile/index.tsx"
- "packages/mobile/metro.config.js"
- "packages/mobile/package.json"
- "packages/react-native-avoid-softinput/src/**"
- "packages/react-native-avoid-softinput/package.json"
- "packages/react-native-avoid-softinput/tsconfig.json"
- ".eslintrc.js"
- "dprint.json"
- "package.json"
- "tsconfig.base.json"
- "tsconfig.jest.json"
- ".github/workflows/lint-js.yml"
jobs:
lint-js:
name: Lint JS/TS
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/cache@v3
with:
path: "**/node_modules"
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}
- name: Install modules
uses: actions/setup-node@v4
with:
cache: "yarn"
registry-url: "https://registry.npmjs.org"
cache-dependency-path: "**/yarn.lock"
- run: yarn
- name: ESLint
run: yarn lint:js
- name: dprint
uses: dprint/[email protected]
- name: TypeScript
run: yarn typescript