Separate the actions

This commit is contained in:
Manav Rathi
2024-06-03 15:16:56 +05:30
parent 08a60d827f
commit a63a6fc1c2
2 changed files with 34 additions and 3 deletions

View File

@@ -32,9 +32,6 @@ jobs:
- name: Install dependencies
run: yarn install
- name: Lint
run: yarn lint
- name: Build
run: yarn build

34
.github/workflows/infra-lint-staff.yml vendored Normal file
View File

@@ -0,0 +1,34 @@
name: "Lint (staff)"
on:
# Run on every push to a branch other than main that changes infra/staff/
push:
branches-ignore: [main]
paths:
- "infra/staff/**"
- ".github/workflows/infra-deploy-staff.yml"
jobs:
deploy:
runs-on: ubuntu-latest
defaults:
run:
working-directory: infra/staff
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup node and enable yarn caching
uses: actions/setup-node@v4
with:
node-version: 20
cache: "yarn"
cache-dependency-path: "infra/staff/yarn.lock"
- name: Install dependencies
run: yarn install
- name: Lint
run: yarn lint