Update dependency @typescript-eslint/eslint-plugin to v6.19.0 #250
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 | |
on: | |
push: | |
branches-ignore: | |
- main | |
jobs: | |
build: | |
name: Node.js ubuntu-latest 20.x | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out Git repository | |
uses: actions/checkout@v4 | |
- name: Set up Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
- name: before cache | |
run: | | |
mkdir -p node_modules | |
ls node_modules | |
- name: Get yarn cache directory path | |
id: yarn-cache-dir-path | |
run: echo "::set-output name=dir::$(yarn config get cacheFolder)" | |
- name: Cache/Restore node_modules | |
id: cache-dependencies | |
uses: actions/cache@v3 | |
with: | |
path: node_modules | |
key: ${{ runner.OS }}-node_modules-${{ matrix.node-version }}-${{ hashFiles('**/yarn.lock') }} | |
- name: Get yarn cache dir | |
if: steps.cache-dependencies.outputs.cache-hit != 'true' | |
id: cache-yarn | |
run: echo "::set-output name=dir::$(yarn cache dir)" | |
- name: Cache/Restore yarn cache | |
if: steps.cache-dependencies.outputs.cache-hit != 'true' | |
uses: actions/cache@v3 | |
with: | |
path: ${{ steps.cache-yarn.outputs.dir }} | |
key: ${{ runner.os }}-yarn-${{ matrix.node-version }}-${{ hashFiles('**/yarn.lock') }} | |
restore-keys: | | |
${{ runner.os }}-yarn-${{ matrix.node-version }}- | |
# ESLint and Prettier must be in `package.json` | |
- name: Install Node.js dependencies | |
if: steps.cache-dependencies.outputs.cache-hit != 'true' | |
run: yarn | |
- name: yarn lint | |
run: | | |
yarn lint | |
- name: yarn build front | |
run: | | |
yarn build |