chore: use setup-node@v4 with node v20 on GH Actions #45
Workflow file for this run
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: 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 |