Skip to content

ci: update lint workflow #31

ci: update lint workflow

ci: update lint workflow #31

Workflow file for this run

name: Lint
on:
push:
branches:
- main
pull_request:
jobs:
lint:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./template
steps:
- name: Check out repository
uses: actions/checkout@v3
- name: Setup NodeJS
uses: actions/setup-node@v3
with:
node-version: 16.x
- name: Install dependencies
run: |
npm pkg delete scripts.postinstall scripts.prepare
npm install
- run: mv _eslintrc.js .eslintrc.js && mv _prettierrc.js .prettierrc.js
- name: Lint code
run: yarn lint