Skip to content

feat(fe): add toggle for hiding expired sessions #202

feat(fe): add toggle for hiding expired sessions

feat(fe): add toggle for hiding expired sessions #202

Workflow file for this run

name: Lint & Format
on:
pull_request:
branches: ['main']
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
ref: ${{ github.head_ref }}
token: ${{ secrets.GITHUB_TOKEN }}
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '18'
- name: Install pnpm
run: npm install -g pnpm
- name: Install dependencies
run: pnpm install
- name: Install Turborepo
run: npm install turbo -g
- name: Run ESLint
run: turbo run lint
- name: Run Prettier
run: turbo run format
- name: Commit changes if any
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
git config --global user.name 'github-actions[bot]'
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
branch_name="${{ github.head_ref }}"
git diff --quiet || { git add . && git commit -m 'chore: auto-fix linting and formatting issues' && git push origin "$branch_name"; }