Skip to content

chore: use eslint flat config (#36) #152

chore: use eslint flat config (#36)

chore: use eslint flat config (#36) #152

Workflow file for this run

name: CI
on:
push:
branches: ['main']
pull_request:
permissions:
pull-requests: write
env:
NX_CLOUD_ACCESS_TOKEN: ${{ secrets.NX_CLOUD_ACCESS_TOKEN }}
jobs:
main:
runs-on: ubuntu-latest
steps:
- name: Comment preparing to deploy
if: ${{ github.event_name != 'push' }}
uses: mshick/add-pr-comment@v2
with:
message-id: cloudflare-pages-preview-deployment
message: |
## <span aria-hidden="true">🚧</span> Preparing to Deploy Preview...
| Name | Link |
| ---- | ---- |
| **Latest commit** | ${{ github.sha }} |
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Derive appropriate SHAs for base and head for `nx affected` commands
uses: nrwl/nx-set-shas@v4
- name: Setup pnpm
uses: pnpm/action-setup@v3
with:
version: 8.15.5
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version-file: '.node-version'
cache: 'pnpm'
- name: Install dependencies
run: pnpm i --frozen-lockfile
- name: Check code format
run: pnpm format:check
- name: Check type
run: pnpm type:check
- name: Linting
run: pnpm lint
- name: Build
run: pnpm build