Skip to content

Commit 16ad590

Browse files
committed
chore: update CI to run lint and type-check, deploy only runs after CI passes on main
1 parent 606f70b commit 16ad590

2 files changed

Lines changed: 12 additions & 2 deletions

File tree

.github/workflows/ci.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,11 @@ jobs:
2222
- name: 📦 Install dependencies
2323
run: bun install
2424

25+
- name: 🔍 Run ESLint
26+
run: bun run lint
27+
28+
- name: 🔍 Run TypeScript check
29+
run: bun run type-check
30+
2531
- name: 🛠️ Build project
2632
run: bun run build

.github/workflows/deploy.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
name: Deploy Vue to GitHub Pages
22

33
on:
4-
push:
5-
branches: ['main']
4+
workflow_run:
5+
workflows: [CI]
6+
types: [completed]
67
workflow_dispatch:
78

89
permissions:
@@ -17,6 +18,9 @@ concurrency:
1718
jobs:
1819
build:
1920
runs-on: ubuntu-latest
21+
if: >
22+
github.event.workflow_run.conclusion == 'success'
23+
&& github.event.workflow_run.head_branch == 'main'
2024
steps:
2125
- name: 🛎️ Checkout code
2226
uses: actions/checkout@v4

0 commit comments

Comments
 (0)