Skip to content

Commit db76eb0

Browse files
Update @codeui/kit and kobalte (#647)
* update code ui * update lock * update pnpm version * fix types * fix highlight package * fix highlight rollup build * fix highlight rollup build * fix ci * fix ci * fix ci * fix ci * fix ci * fix ci * fix ci * add setup job action * add setup job action * add setup job action * add setup job action * add setup job action * add setup job action * add setup job action * fix deps * docs(changeset): Update @codeui dependency, update vite/rollup and infra deps * fix ci
1 parent b7bed4c commit db76eb0

File tree

32 files changed

+11651
-8417
lines changed

32 files changed

+11651
-8417
lines changed

Diff for: .changeset/hip-timers-drum.md

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
'@codeimage/highlight': minor
3+
'@codeimage/locale': minor
4+
'@codeimage/app': minor
5+
'@codeimage/website': minor
6+
'@codeimage/api': minor
7+
---
8+
9+
Update @codeui dependency, update vite/rollup and infra deps

Diff for: .github/actions/pnpm-install/action.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ runs:
77
steps:
88
- uses: pnpm/action-setup@v4
99
with:
10-
version: 8
10+
version: 9.5.0
1111

1212
- name: Expose pnpm config(s) through "$GITHUB_OUTPUT"
1313
id: pnpm-config
@@ -21,7 +21,7 @@ runs:
2121
run: |
2222
echo "YEAR_MONTH=$(/bin/date -u "+%Y%m")" >> $GITHUB_OUTPUT
2323
24-
- uses: actions/cache@v3
24+
- uses: actions/cache@v4
2525
name: Setup pnpm cache
2626
with:
2727
path: ${{ steps.pnpm-config.outputs.STORE_PATH }}

Diff for: .github/actions/setup-job/action.yml

+3-6
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,7 @@ runs:
55
using: 'composite'
66

77
steps:
8-
- name: Checkout PR
9-
uses: actions/checkout@v4
10-
11-
- name: Use Node.js ${{ matrix.node }}
12-
uses: actions/setup-job-node@v4
8+
- name: Use Node.js 22
9+
uses: actions/setup-node@v4
1310
with:
14-
node-version: ${{ matrix.node }}
11+
node-version: 22

Diff for: .github/workflows/main.yml

+53-102
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,9 @@ jobs:
1818
runs-on: ubuntu-latest
1919
steps:
2020
- name: Checkout PR
21-
uses: actions/checkout@v3
22-
# with:
23-
# submodules: 'true'
24-
- name: Use Node.js ${{ matrix.node-version }}
25-
uses: actions/setup-node@v3
26-
with:
27-
node-version: ${{ matrix.node-version }}
21+
uses: actions/checkout@v4
22+
- name: 📥 Setup
23+
uses: ./.github/actions/setup-job
2824
- name: 📥 Monorepo install
2925
uses: ./.github/actions/pnpm-install
3026

@@ -59,16 +55,11 @@ jobs:
5955
name: Lint
6056
needs: install
6157
runs-on: ubuntu-latest
62-
6358
steps:
6459
- name: Checkout PR
65-
uses: actions/checkout@v3
66-
# with:
67-
# submodules: 'true'
68-
- name: Use Node.js ${{ matrix.node-version }}
69-
uses: actions/setup-node@v3
70-
with:
71-
node-version: ${{ matrix.node-version }}
60+
uses: actions/checkout@v4
61+
- name: 📥 Setup
62+
uses: ./.github/actions/setup-job
7263
- name: 📥 Monorepo install
7364
uses: ./.github/actions/pnpm-install
7465

@@ -85,15 +76,11 @@ jobs:
8576
name: Build packages
8677
needs: [ install ]
8778
runs-on: ubuntu-latest
88-
8979
steps:
90-
- uses: actions/checkout@v3
91-
# with:
92-
# submodules: 'true'
93-
- name: Use Node.js ${{ matrix.node-version }}
94-
uses: actions/setup-node@v3
95-
with:
96-
node-version: ${{ matrix.node-version }}
80+
- name: Checkout PR
81+
uses: actions/checkout@v4
82+
- name: 📥 Setup
83+
uses: ./.github/actions/setup-job
9784
- name: 📥 Monorepo install
9885
uses: ./.github/actions/pnpm-install
9986

@@ -108,7 +95,7 @@ jobs:
10895
pnpm libs:build
10996
11097
- name: Cache packages
111-
uses: actions/cache@v3
98+
uses: actions/cache@v4
11299
with:
113100
path: packages
114101
key: packages-dist-${{ github.run_id }}-${{ github.run_number }}
@@ -119,13 +106,10 @@ jobs:
119106
needs: [ install, build-packages ]
120107
runs-on: ubuntu-latest
121108
steps:
122-
- uses: actions/checkout@v3
123-
# with:
124-
# submodules: 'true'
125-
- name: Use Node.js ${{ matrix.node-version }}
126-
uses: actions/setup-node@v3
127-
with:
128-
node-version: ${{ matrix.node-version }}
109+
- name: Checkout PR
110+
uses: actions/checkout@v4
111+
- name: 📥 Setup
112+
uses: ./.github/actions/setup-job
129113
- name: 📥 Monorepo install
130114
uses: ./.github/actions/pnpm-install
131115

@@ -136,7 +120,7 @@ jobs:
136120
pnpm --filter=@codeimage/prisma-models build
137121
138122
- name: Restore dist
139-
uses: actions/cache@v3
123+
uses: actions/cache@v4
140124
with:
141125
path: packages
142126
key: packages-dist-${{ github.run_id }}-${{ github.run_number }}
@@ -156,21 +140,16 @@ jobs:
156140
needs: [ build-packages ]
157141
if: ${{ github.head_ref != 'next' }}
158142
runs-on: ubuntu-latest
159-
160143
steps:
161144
- name: Checkout PR
162-
uses: actions/checkout@v3
163-
# with:
164-
# submodules: 'true'
165-
- name: Use Node.js ${{ matrix.node-version }}
166-
uses: actions/setup-node@v3
167-
with:
168-
node-version: ${{ matrix.node-version }}
145+
uses: actions/checkout@v4
146+
- name: 📥 Setup
147+
uses: ./.github/actions/setup-job
169148
- name: 📥 Monorepo install
170149
uses: ./.github/actions/pnpm-install
171150

172151
- name: Restore dist
173-
uses: actions/cache@v3
152+
uses: actions/cache@v4
174153
with:
175154
path: packages
176155
key: packages-dist-${{ github.run_id }}-${{ github.run_number }}
@@ -208,22 +187,16 @@ jobs:
208187
needs: [ build-packages ]
209188
if: ${{ github.head_ref == 'next' }}
210189
runs-on: ubuntu-latest
211-
212190
steps:
213191
- name: Checkout PR
214-
uses: actions/checkout@v3
215-
with:
216-
ref: 'refs/pull/${{ github.event.number }}/merge'
217-
# submodules: 'true'
218-
- name: Use Node.js ${{ matrix.node-version }}
219-
uses: actions/setup-node@v3
220-
with:
221-
node-version: ${{ matrix.node-version }}
192+
uses: actions/checkout@v4
193+
- name: 📥 Setup
194+
uses: ./.github/actions/setup-job
222195
- name: 📥 Monorepo install
223196
uses: ./.github/actions/pnpm-install
224197

225198
- name: Restore dist
226-
uses: actions/cache@v3
199+
uses: actions/cache@v4
227200
with:
228201
path: packages
229202
key: packages-dist-${{ github.run_id }}-${{ github.run_number }}
@@ -261,22 +234,16 @@ jobs:
261234
needs: [ build-packages ]
262235
if: (${{ needs.install.outputs.app-change == 'true' }} || ${{ needs.install.outputs.libs-change == 'true' }})
263236
runs-on: ubuntu-latest
264-
265237
steps:
266238
- name: Checkout PR
267-
uses: actions/checkout@v3
268-
with:
269-
submodules: 'true'
270-
# ref: 'refs/pull/${{ github.event.number }}/merge'
271-
- name: Use Node.js ${{ matrix.node-version }}
272-
uses: actions/setup-node@v3
273-
with:
274-
node-version: ${{ matrix.node-version }}
239+
uses: actions/checkout@v4
240+
- name: 📥 Setup
241+
uses: ./.github/actions/setup-job
275242
- name: 📥 Monorepo install
276243
uses: ./.github/actions/pnpm-install
277244

278245
- name: Restore dist
279-
uses: actions/cache@v3
246+
uses: actions/cache@v4
280247
with:
281248
path: packages
282249
key: packages-dist-${{ github.run_id }}-${{ github.run_number }}
@@ -304,22 +271,16 @@ jobs:
304271
needs: [ build-packages ]
305272
if: (${{ needs.install.outputs.app-change == 'true' }} || ${{ needs.install.outputs.libs-change == 'true' }})
306273
runs-on: ubuntu-latest
307-
308274
steps:
309275
- name: Checkout PR
310-
uses: actions/checkout@v3
311-
with:
312-
ref: 'refs/pull/${{ github.event.number }}/merge'
313-
# submodules: 'true'
314-
- name: Use Node.js ${{ matrix.node-version }}
315-
uses: actions/setup-node@v3
316-
with:
317-
node-version: ${{ matrix.node-version }}
276+
uses: actions/checkout@v4
277+
- name: 📥 Setup
278+
uses: ./.github/actions/setup-job
318279
- name: 📥 Monorepo install
319280
uses: ./.github/actions/pnpm-install
320281

321282
- name: Restore dist
322-
uses: actions/cache@v3
283+
uses: actions/cache@v4
323284
with:
324285
path: packages
325286
key: packages-dist-${{ github.run_id }}-${{ github.run_number }}
@@ -346,7 +307,7 @@ jobs:
346307
codeimage-website-pr-{{PR_NUMBER}}.vercel.app
347308
348309
- name: Cache website
349-
uses: actions/cache@v3
310+
uses: actions/cache@v4
350311
with:
351312
path: apps/website
352313
key: apps-website-${{ github.run_id }}-${{ github.run_number }}
@@ -357,19 +318,14 @@ jobs:
357318
runs-on: ubuntu-latest
358319
steps:
359320
- name: Checkout PR
360-
uses: actions/checkout@v3
361-
with:
362-
ref: 'refs/pull/${{ github.event.number }}/merge'
363-
# submodules: 'true'
364-
- name: Use Node.js ${{ matrix.node-version }}
365-
uses: actions/setup-node@v3
366-
with:
367-
node-version: ${{ matrix.node-version }}
321+
uses: actions/checkout@v4
322+
- name: 📥 Setup
323+
uses: ./.github/actions/setup-job
368324
- name: 📥 Monorepo install
369325
uses: ./.github/actions/pnpm-install
370326

371327
- name: Restore website
372-
uses: actions/cache@v3
328+
uses: actions/cache@v4
373329
with:
374330
path: apps/website
375331
key: apps-website-${{ github.run_id }}-${{ github.run_number }}
@@ -387,13 +343,10 @@ jobs:
387343
runs-on: ubuntu-latest
388344

389345
steps:
390-
- uses: actions/checkout@v3
391-
# with:
392-
# submodules: 'true'
393-
- name: Use Node.js ${{ matrix.node-version }}
394-
uses: actions/setup-node@v3
395-
with:
396-
node-version: ${{ matrix.node-version }}
346+
- name: Checkout PR
347+
uses: actions/checkout@v4
348+
- name: 📥 Setup
349+
uses: ./.github/actions/setup-job
397350
- name: 📥 Monorepo install
398351
uses: ./.github/actions/pnpm-install
399352

@@ -408,7 +361,7 @@ jobs:
408361
pnpm prepare:api:deploy
409362
410363
- name: Cache build
411-
uses: actions/cache@v3
364+
uses: actions/cache@v4
412365
with:
413366
path: |
414367
dist/api-bundle/**
@@ -449,14 +402,15 @@ jobs:
449402
ALLOWED_ORIGINS: '*'
450403

451404
steps:
452-
- uses: actions/checkout@v3
453-
# with:
454-
# submodules: 'true'
405+
- name: Checkout PR
406+
uses: actions/checkout@v4
407+
- name: 📥 Setup
408+
uses: ./.github/actions/setup-job
455409
- name: 📥 Monorepo install
456410
uses: ./.github/actions/pnpm-install
457411

458412
- name: Restore dist
459-
uses: actions/cache@v3
413+
uses: actions/cache@v4
460414
with:
461415
path: |
462416
packages
@@ -488,24 +442,21 @@ jobs:
488442
]
489443
runs-on: ubuntu-latest
490444
steps:
491-
- uses: actions/checkout@v3
492-
# with:
493-
# submodules: 'true'
494-
- name: Use Node.js ${{ matrix.node-version }}
495-
uses: actions/setup-node@v3
496-
with:
497-
node-version: ${{ matrix.node-version }}
445+
- name: Checkout PR
446+
uses: actions/checkout@v4
447+
- name: 📥 Setup
448+
uses: ./.github/actions/setup-job
498449
- name: 📥 Monorepo install
499450
uses: ./.github/actions/pnpm-install
500451

501452
- name: Restore packages
502-
uses: actions/cache@v3
453+
uses: actions/cache@v4
503454
with:
504455
path: packages
505456
key: packages-dist-${{ github.run_id }}-${{ github.run_number }}
506457

507458
- name: Restore api build
508-
uses: actions/cache@v3
459+
uses: actions/cache@v4
509460
with:
510461
path: |
511462
dist/api-bundle/**

0 commit comments

Comments
 (0)