Update gitea lint CI to trigger on push to main branch
All checks were successful
/ Run lint and build checks (pull_request) Successful in 3m49s

This commit is contained in:
Pranav 2025-12-23 16:48:34 +05:30
parent c4aa6a8494
commit a612d43f97

View File

@ -1,19 +1,20 @@
name: Lint and Build
on:
pull_request:
branches: [ main ]
push:
branches: [ main ]
jobs:
lint-and-build:
name: Run lint and build checks
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: '22'
@ -22,9 +23,9 @@ jobs:
- name: Install dependencies
run: yarn install --frozen-lockfile
- name: Run ESLint
run: yarn lint
- name: Run build
run: yarn build