Skip to content

Commit 1bb0c2a

Browse files
authored
Merge pull request #101 from Pkcarreno/fix-lefthook
2 parents c84bb42 + e08eca9 commit 1bb0c2a

3 files changed

Lines changed: 5 additions & 26 deletions

File tree

‎.github/workflows/checks.yml‎

Lines changed: 1 addition & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -26,27 +26,6 @@ jobs:
2626
if: github.event_name != 'pull_request'
2727
run: pnpm run lint
2828

29-
typescript:
30-
name: Type Check
31-
runs-on: ubuntu-latest
32-
steps:
33-
- uses: actions/checkout@v4
34-
with:
35-
fetch-depth: 0
36-
37-
- uses: ./.github/actions/setup-node-pnpm-install
38-
39-
- name: Run TSC (PR)
40-
if: github.event_name == 'pull_request'
41-
uses: EPMatt/reviewdog-action-tsc@v1
42-
with:
43-
github_token: ${{ secrets.GITHUB_TOKEN }}
44-
reporter: github-pr-review
45-
46-
- name: Run TSC (Commit)
47-
if: github.event_name != 'pull_request'
48-
run: pnpm tsc
49-
5029
astro:
5130
name: Astro Check
5231
runs-on: ubuntu-latest
@@ -57,4 +36,4 @@ jobs:
5736

5837
- uses: ./.github/actions/setup-node-pnpm-install
5938

60-
- run: pnpm check
39+
- run: pnpm tsc

‎lefthook.yml‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
pre-commit:
22
jobs:
3-
- run: pnpm check
3+
- run: pnpm tsc
44
glob: "*.{js,jsx,ts,tsx,json,jsonc,css,astro}"
55
- run: pnpm lint:fix {staged_files}
66
glob: "*.{js,jsx,ts,tsx,json,jsonc,css,astro}"
@@ -14,6 +14,7 @@ pre-push:
1414
post-merge:
1515
jobs:
1616
- run: pnpm install
17+
files: git diff --name-only ORIG_HEAD HEAD
1718
glob: "pnpm-lock.yaml"
1819

1920
commit-msg:

‎package.json‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,10 @@
66
"scripts": {
77
"dev": "astro dev",
88
"start": "astro dev",
9-
"build": "astro check && astro build",
9+
"build": "astro build",
1010
"preview": "astro preview",
1111
"astro": "astro",
12-
"check": "astro check",
13-
"tsc": "tsc",
12+
"tsc": "astro sync && astro check",
1413
"lint": "ultracite check",
1514
"lint:fix": "ultracite fix",
1615
"commitlint": "commitlint",

0 commit comments

Comments
 (0)