Skip to content

Commit cc68927

Browse files
Fix build errors (#1126)
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
1 parent 393dc7e commit cc68927

File tree

5 files changed

+54
-65
lines changed

5 files changed

+54
-65
lines changed

.github/actions/install/action.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Install Tools & Dependencies
2+
description: Installs pnpm, Node.js & package dependencies
3+
4+
runs:
5+
using: composite
6+
steps:
7+
- name: Setup pnpm
8+
uses: pnpm/action-setup@v4
9+
with:
10+
version: 9
11+
run_install: false
12+
13+
- name: Setup Node.js
14+
uses: actions/setup-node@v4
15+
with:
16+
node-version: 20
17+
cache: pnpm
18+
19+
- name: Install dependencies
20+
run: pnpm install
21+
shell: bash

.github/workflows/orama_sync.yml

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -12,18 +12,12 @@ jobs:
1212
build:
1313
runs-on: ubuntu-latest
1414
steps:
15-
- name: Checkout repository
15+
- name: Check out code
1616
uses: actions/checkout@v4
17-
- uses: pnpm/action-setup@v3
18-
with:
19-
version: 8
20-
- name: Setup Node.js
21-
uses: actions/setup-node@v4
22-
with:
23-
node-version: 20.x
24-
cache: pnpm
25-
- name: Install dependencies
26-
run: pnpm i
17+
18+
- name: Install tools & dependencies
19+
uses: ./.github/actions/install
20+
2721
- name: Sync Orama
2822
run: pnpm sync:orama
2923
env:

.github/workflows/static_checks.yml

Lines changed: 19 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -2,70 +2,37 @@ name: 🔍 Lint / Type Checks
22

33
on:
44
push:
5-
branches: [main]
5+
branches:
6+
- main
7+
68
pull_request:
7-
branches: [main]
9+
branches:
10+
- main
811

912
jobs:
10-
setup:
11-
runs-on: ubuntu-latest
12-
steps:
13-
- uses: actions/checkout@v4
14-
- uses: pnpm/action-setup@v4
15-
with:
16-
version: 9
17-
- uses: actions/setup-node@v4
18-
with:
19-
node-version: "20"
20-
cache: "pnpm"
21-
- run: pnpm i
22-
- uses: actions/cache/save@v4
23-
with:
24-
path: |
25-
node_modules
26-
~/.pnpm-store
27-
key: ${{ runner.os }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }}
28-
2913
typecheck:
30-
needs: setup
3114
runs-on: ubuntu-latest
3215
steps:
33-
- uses: actions/checkout@v4
34-
- uses: pnpm/action-setup@v4
35-
with:
36-
version: 9
37-
- uses: actions/setup-node@v4
38-
with:
39-
node-version: "20"
40-
cache: "pnpm"
41-
- uses: actions/cache/restore@v4
42-
with:
43-
path: |
44-
node_modules
45-
~/.pnpm-store
46-
key: ${{ runner.os }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }}
16+
- name: Check out code
17+
uses: actions/checkout@v4
18+
19+
- name: Install tools & dependencies
20+
uses: ./.github/actions/install
21+
4722
- name: Generate virtual modules
4823
run: pnpm sync
24+
4925
- name: TypeScript check
5026
run: pnpm check:types
5127

5228
lint:
53-
needs: setup
5429
runs-on: ubuntu-latest
5530
steps:
56-
- uses: actions/checkout@v4
57-
- uses: pnpm/action-setup@v4
58-
with:
59-
version: 9
60-
- uses: actions/setup-node@v4
61-
with:
62-
node-version: "20"
63-
cache: "pnpm"
64-
- uses: actions/cache/restore@v4
65-
with:
66-
path: |
67-
node_modules
68-
~/.pnpm-store
69-
key: ${{ runner.os }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }}
70-
- name: ESLint check
31+
- name: Check out code
32+
uses: actions/checkout@v4
33+
34+
- name: Install tools & dependencies
35+
uses: ./.github/actions/install
36+
37+
- name: Lint code
7138
run: pnpm check:lint

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,6 @@
5959
},
6060
"engines": {
6161
"node": ">=18",
62-
"packageManager": "pnpm@8"
62+
"pnpm": ">=9"
6363
}
6464
}

src/ui/layout/theme-selector.tsx

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,11 @@
1-
import { children, Component, ComponentProps, createSignal, JSX, onMount, Show } from "solid-js";
1+
import {
2+
Component,
3+
ComponentProps,
4+
createSignal,
5+
JSX,
6+
onMount,
7+
Show,
8+
} from "solid-js";
29
import { computerDesktop, moon, sun } from "solid-heroicons/solid";
310
import { Select } from "@kobalte/core/select";
411
import {

0 commit comments

Comments
 (0)